Commit b8214f77 authored by David Fuhrmann's avatar David Fuhrmann

auhal: volumeSet and muteSet is not supported for digital output

parent 2f8b0deb
...@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj) ...@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj)
vlc_mutex_init(&p_sys->lock); vlc_mutex_init(&p_sys->lock);
vlc_cond_init(&p_sys->cond); vlc_cond_init(&p_sys->cond);
p_sys->b_digital = false;
p_aout->sys = p_sys; p_aout->sys = p_sys;
p_aout->start = Start; p_aout->start = Start;
...@@ -940,6 +941,7 @@ static void Stop(audio_output_t *p_aout) ...@@ -940,6 +941,7 @@ static void Stop(audio_output_t *p_aout)
} }
p_sys->i_bytes_per_sample = 0; p_sys->i_bytes_per_sample = 0;
p_sys->b_digital = false;
/* clean-up circular buffer */ /* clean-up circular buffer */
TPCircularBufferCleanup(&p_sys->circular_buffer); TPCircularBufferCleanup(&p_sys->circular_buffer);
...@@ -1092,6 +1094,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume) ...@@ -1092,6 +1094,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
struct aout_sys_t *p_sys = p_aout->sys; struct aout_sys_t *p_sys = p_aout->sys;
OSStatus ostatus; OSStatus ostatus;
if(p_sys->b_digital) {
return VLC_EGENERIC;
}
aout_VolumeReport(p_aout, volume); aout_VolumeReport(p_aout, volume);
/* Set volume for output unit */ /* Set volume for output unit */
...@@ -1113,6 +1119,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute) ...@@ -1113,6 +1119,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute)
struct aout_sys_t *p_sys = p_aout->sys; struct aout_sys_t *p_sys = p_aout->sys;
OSStatus ostatus; OSStatus ostatus;
if(p_sys->b_digital) {
return VLC_EGENERIC;
}
aout_MuteReport(p_aout, mute); aout_MuteReport(p_aout, mute);
float volume = .0; float volume = .0;
......
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