[vlc-commits] audioqueue: use software amplification (untested)

Rémi Denis-Courmont git at videolan.org
Thu Jul 19 19:42:02 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 19 18:11:00 2012 +0300| [e203c0efbcc40b7142408823011b03297fe8c267] | committer: Rémi Denis-Courmont

audioqueue: use software amplification (untested)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e203c0efbcc40b7142408823011b03297fe8c267
---

 modules/audio_output/audioqueue.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/audioqueue.c b/modules/audio_output/audioqueue.c
index 8cc5a76..99acc1b 100644
--- a/modules/audio_output/audioqueue.c
+++ b/modules/audio_output/audioqueue.c
@@ -48,6 +48,8 @@ struct aout_sys_t
 {
     aout_packet_t packet;
     AudioQueueRef audioQueue;
+    float soft_gain;
+    bool soft_mute;
 };
 
 /*****************************************************************************
@@ -58,6 +60,8 @@ static void Close              ( vlc_object_t * );
 static void Play               ( audio_output_t *, block_t * );
 static void AudioQueueCallback (void *, AudioQueueRef, AudioQueueBufferRef);
 
+#include "volume.h"
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
@@ -117,7 +121,7 @@ static int Open ( vlc_object_t *p_this )
     }
 
     /* Volume is entirely done in software. */
-    aout_VolumeSoftInit( p_aout );
+    aout_SoftVolumeInit( p_aout );
 
     p_aout->format.i_format = VLC_CODEC_S16L;
     p_aout->format.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;



More information about the vlc-commits mailing list