X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Faout_internal.h;h=81e53885e0c09c468b81ebcc0a6977dabe7d2a22;hb=ddb6d46817b21c9634065f31b732a50a5dce255e;hp=f0cb59ebc5fdd60e140f25e82d2fb096d86392e2;hpb=1b7ce2697e98a3fcff4f78d1610f7f0268cd47c1;p=vlc diff --git a/include/aout_internal.h b/include/aout_internal.h index f0cb59ebc5..81e53885e0 100644 --- a/include/aout_internal.h +++ b/include/aout_internal.h @@ -2,7 +2,7 @@ * aout_internal.h : internal defines for audio output ***************************************************************************** * Copyright (C) 2002 VideoLAN - * $Id: aout_internal.h,v 1.35 2002/12/06 10:10:40 sam Exp $ + * $Id: aout_internal.h,v 1.42 2003/11/16 21:07:30 gbazin Exp $ * * Authors: Christophe Massiot * @@ -97,7 +97,7 @@ struct aout_fifo_t /***************************************************************************** * aout_filter_t : audio output filter *****************************************************************************/ -typedef struct aout_filter_t +struct aout_filter_t { VLC_COMMON_MEMBERS @@ -112,8 +112,8 @@ typedef struct aout_filter_t struct aout_buffer_t *, struct aout_buffer_t * ); vlc_bool_t b_in_place; - vlc_bool_t b_reinit; -} aout_filter_t; + vlc_bool_t b_continuity; +}; /***************************************************************************** * aout_mixer_t : audio output mixer @@ -128,7 +128,7 @@ typedef struct aout_mixer_t void (* pf_do_work)( struct aout_instance_t *, struct aout_buffer_t * ); - /* If b_error == 1, there is no mixer nor audio output pipeline. */ + /* If b_error == 1, there is no mixer. */ vlc_bool_t b_error; /* Multiplier used to raise or lower the volume of the sound in * software. Beware, this creates sound distortion and should be avoided @@ -169,8 +169,15 @@ struct aout_input_t /* If b_error == 1, there is no input pipeline. */ vlc_bool_t b_error; - /* Did we just change the output format ? (expect buffer inconsistencies) */ + + /* Did we just change the output format? (expect buffer inconsistencies) */ vlc_bool_t b_changed; + + /* internal caching delay from input */ + int i_pts_delay; + /* desynchronisation delay request by the user */ + int i_desync; + }; /***************************************************************************** @@ -200,6 +207,9 @@ typedef struct aout_output_t /* Current volume for the output - it's just a placeholder, the plug-in * may or may not use it. */ audio_volume_t i_volume; + + /* If b_error == 1, there is no audio output pipeline. */ + vlc_bool_t b_error; } aout_output_t; /***************************************************************************** @@ -245,24 +255,14 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input, aout_buffer_t * p_buffer ); /* From filters.c : */ -int aout_FiltersCreatePipeline( aout_instance_t * p_aout, - aout_filter_t ** pp_filters, - int * pi_nb_filters, - const audio_sample_format_t * p_input_format, - const audio_sample_format_t * p_output_format ); -void aout_FiltersDestroyPipeline( aout_instance_t * p_aout, - aout_filter_t ** pp_filters, - int i_nb_filters ); -void aout_FiltersHintBuffers( aout_instance_t * p_aout, - aout_filter_t ** pp_filters, - int i_nb_filters, aout_alloc_t * p_first_alloc ); -void aout_FiltersPlay( aout_instance_t * p_aout, - aout_filter_t ** pp_filters, - int i_nb_filters, aout_buffer_t ** pp_input_buffer ); +VLC_EXPORT( int, aout_FiltersCreatePipeline, ( aout_instance_t * p_aout, aout_filter_t ** pp_filters, int * pi_nb_filters, const audio_sample_format_t * p_input_format, const audio_sample_format_t * p_output_format ) ); +VLC_EXPORT( void, aout_FiltersDestroyPipeline, ( aout_instance_t * p_aout, aout_filter_t ** pp_filters, int i_nb_filters ) ); +VLC_EXPORT( void, aout_FiltersPlay, ( aout_instance_t * p_aout, aout_filter_t ** pp_filters, int i_nb_filters, aout_buffer_t ** pp_input_buffer ) ); +void aout_FiltersHintBuffers( aout_instance_t * p_aout, aout_filter_t ** pp_filters, int i_nb_filters, aout_alloc_t * p_first_alloc ); /* From mixer.c : */ int aout_MixerNew( aout_instance_t * p_aout ); -int aout_MixerDelete( aout_instance_t * p_aout ); +void aout_MixerDelete( aout_instance_t * p_aout ); void aout_MixerRun( aout_instance_t * p_aout ); int aout_MixerMultiplierSet( aout_instance_t * p_aout, float f_multiplier ); int aout_MixerMultiplierGet( aout_instance_t * p_aout, float * pf_multiplier );