@ -51,7 +51,7 @@ typedef jack_default_audio_sample_t jack_sample_t;
* This structure is part of the audio output thread descriptor .
* It describes some JACK specific variables .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
struct aout_sys_ t
typedef struc t
{
jack_ringbuffer_t * p_jack_ringbuffer ;
jack_client_t * p_jack_client ;
@ -63,7 +63,7 @@ struct aout_sys_t
float soft_gain ;
bool soft_mute ;
mtime_t paused ; /**< Time when (last) paused */
} ;
} aout_sys_t ;
/*****************************************************************************
* Local prototypes
@ -116,7 +116,7 @@ vlc_module_end ()
static int Start ( audio_output_t * p_aout , audio_sample_format_t * restrict fmt )
{
char * psz_name ;
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
int status = VLC_SUCCESS ;
unsigned int i ;
int i_error ;
@ -285,7 +285,7 @@ error_out:
static void Play ( audio_output_t * p_aout , block_t * p_block )
{
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
jack_ringbuffer_t * rb = p_sys - > p_jack_ringbuffer ;
const size_t bytes_per_frame = p_sys - > i_channels * sizeof ( jack_sample_t ) ;
@ -330,7 +330,7 @@ static void Pause(audio_output_t *aout, bool paused, mtime_t date)
static void Flush ( audio_output_t * p_aout , bool wait )
{
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
jack_ringbuffer_t * rb = p_sys - > p_jack_ringbuffer ;
/* Sleep if wait was requested */
@ -347,7 +347,7 @@ static void Flush(audio_output_t *p_aout, bool wait)
static int TimeGet ( audio_output_t * p_aout , mtime_t * delay )
{
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
jack_ringbuffer_t * rb = p_sys - > p_jack_ringbuffer ;
const size_t bytes_per_frame = p_sys - > i_channels * sizeof ( jack_sample_t ) ;
@ -367,7 +367,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
size_t bytes_read = 0 ;
size_t frames_read ;
audio_output_t * p_aout = ( audio_output_t * ) p_arg ;
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
/* Get the next audio data buffer unless paused */
@ -414,7 +414,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
static int GraphChange ( void * p_arg )
{
audio_output_t * p_aout = ( audio_output_t * ) p_arg ;
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
unsigned int i ;
jack_latency_range_t port_latency ;
@ -439,7 +439,7 @@ static int GraphChange( void *p_arg )
static void Stop ( audio_output_t * p_aout )
{
int i_error ;
struct aout_sys_t * p_sys = p_aout - > sys ;
aout_sys_t * p_sys = p_aout - > sys ;
i_error = jack_deactivate ( p_sys - > p_jack_client ) ;
if ( i_error )