Revision 9b4f1cdb libavcodec/resample.c

View differences:

libavcodec/resample.c
218 218
    return s;
219 219
}
220 220

  
221
#if FF_API_AUDIO_OLD
222
ReSampleContext *audio_resample_init(int output_channels, int input_channels,
223
                                     int output_rate, int input_rate)
224
{
225
    return av_audio_resample_init(output_channels, input_channels,
226
                                  output_rate, input_rate,
227
                                  AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S16,
228
                                  TAPS, 10, 0, 0.8);
229
}
230
#endif
231

  
232 221
/* resample audio. 'nb_samples' is the number of input samples */
233 222
/* XXX: optimize it ! */
234 223
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_samples)

Also available in: Unified diff