[vlc-commits] auhal: volumeSet and muteSet is not supported for digital output
David Fuhrmann
git at videolan.org
Wed Apr 17 18:10:50 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Apr 17 18:04:13 2013 +0200| [b8214f77375707aa1e079ec38da02711fe35263e] | committer: David Fuhrmann
auhal: volumeSet and muteSet is not supported for digital output
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8214f77375707aa1e079ec38da02711fe35263e
---
modules/audio_output/auhal.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index d926f6a..fbbb9fe 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj)
vlc_mutex_init(&p_sys->lock);
vlc_cond_init(&p_sys->cond);
+ p_sys->b_digital = false;
p_aout->sys = p_sys;
p_aout->start = Start;
@@ -940,6 +941,7 @@ static void Stop(audio_output_t *p_aout)
}
p_sys->i_bytes_per_sample = 0;
+ p_sys->b_digital = false;
/* clean-up circular buffer */
TPCircularBufferCleanup(&p_sys->circular_buffer);
@@ -1092,6 +1094,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
struct aout_sys_t *p_sys = p_aout->sys;
OSStatus ostatus;
+ if(p_sys->b_digital) {
+ return VLC_EGENERIC;
+ }
+
aout_VolumeReport(p_aout, volume);
/* Set volume for output unit */
@@ -1113,6 +1119,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute)
struct aout_sys_t *p_sys = p_aout->sys;
OSStatus ostatus;
+ if(p_sys->b_digital) {
+ return VLC_EGENERIC;
+ }
+
aout_MuteReport(p_aout, mute);
float volume = .0;
More information about the vlc-commits
mailing list