Commit e203c0ef authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

audioqueue: use software amplification (untested)

parent 7c28bae9
......@@ -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;
......
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