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

aout: remove write-only parameter

parent f74dd10e
...@@ -49,8 +49,6 @@ typedef struct aout_volume aout_volume_t; ...@@ -49,8 +49,6 @@ typedef struct aout_volume aout_volume_t;
/** an input stream for the audio output */ /** an input stream for the audio output */
struct aout_input_t struct aout_input_t
{ {
unsigned samplerate; /**< Input sample rate */
int i_resampling_type; int i_resampling_type;
int i_resamp_start_drift; int i_resamp_start_drift;
...@@ -108,7 +106,7 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout) ...@@ -108,7 +106,7 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout)
*****************************************************************************/ *****************************************************************************/
/* From input.c : */ /* From input.c : */
aout_input_t *aout_InputNew(const audio_sample_format_t *); aout_input_t *aout_InputNew(void);
void aout_InputDelete(aout_input_t *); void aout_InputDelete(aout_input_t *);
block_t *aout_InputPlay( audio_output_t *p_aout, aout_input_t *p_input, block_t *aout_InputPlay( audio_output_t *p_aout, aout_input_t *p_input,
block_t *p_buffer, int i_input_rate, date_t * ); block_t *p_buffer, int i_input_rate, date_t * );
......
...@@ -97,7 +97,7 @@ error: ...@@ -97,7 +97,7 @@ error:
date_Set (&owner->sync.date, VLC_TS_INVALID); date_Set (&owner->sync.date, VLC_TS_INVALID);
assert (owner->input == NULL); assert (owner->input == NULL);
owner->input = aout_InputNew (p_format); owner->input = aout_InputNew ();
aout_unlock( p_aout ); aout_unlock( p_aout );
return ret; return ret;
} }
...@@ -160,7 +160,7 @@ static void aout_CheckRestart (audio_output_t *aout) ...@@ -160,7 +160,7 @@ static void aout_CheckRestart (audio_output_t *aout)
if (aout_FiltersNew (aout, &owner->input_format, &owner->mixer_format, if (aout_FiltersNew (aout, &owner->input_format, &owner->mixer_format,
&request_vout) == 0) &request_vout) == 0)
owner->input = aout_InputNew (&owner->input_format); owner->input = aout_InputNew ();
} }
/** /**
......
...@@ -43,12 +43,10 @@ static void inputResamplingStop( audio_output_t *, aout_input_t * ); ...@@ -43,12 +43,10 @@ static void inputResamplingStop( audio_output_t *, aout_input_t * );
/***************************************************************************** /*****************************************************************************
* aout_InputNew : allocate a new input and rework the filter pipeline * aout_InputNew : allocate a new input and rework the filter pipeline
*****************************************************************************/ *****************************************************************************/
aout_input_t *aout_InputNew (const audio_sample_format_t *restrict infmt) aout_input_t *aout_InputNew (void)
{ {
aout_input_t *p_input = xmalloc (sizeof (*p_input)); aout_input_t *p_input = xmalloc (sizeof (*p_input));
p_input->samplerate = infmt->i_rate;
p_input->i_resampling_type = AOUT_RESAMPLING_NONE; p_input->i_resampling_type = AOUT_RESAMPLING_NONE;
p_input->i_last_input_rate = INPUT_RATE_DEFAULT; p_input->i_last_input_rate = INPUT_RATE_DEFAULT;
p_input->i_buffer_lost = 0; p_input->i_buffer_lost = 0;
......
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