Commit 284d24cb authored by Felix Paul Kühne's avatar Felix Paul Kühne

auhal: fixed mute

parent 5ff2c7a2
......@@ -1400,9 +1400,24 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
static int MuteSet(audio_output_t * p_aout, bool mute)
{
struct aout_sys_t *p_sys = p_aout->sys;
OSStatus ostatus;
aout_MuteReport(p_aout, mute);
return 0;
float volume = .0;
if (!mute)
volume = var_InheritInteger(p_aout, "auhal-volume") / (float)AOUT_VOLUME_DEFAULT;
ostatus = AudioUnitSetParameter(p_sys->au_unit,
kHALOutputParam_Volume,
kAudioUnitScope_Global,
0,
volume * volume * volume,
0);
return ostatus;
}
static int Open(vlc_object_t *obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment