diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-12-19 14:58:57 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2013-01-07 21:49:06 -0500 |
commit | 074a00d192c0e749d677b008b337da42597e780f (patch) | |
tree | 3f828927503dfef5df7eee5c974ffab75f2407be /libavresample/audio_convert.h | |
parent | 4d68269d58ca4f6f71b4baa30e0cf9fbde52bbc3 (diff) | |
download | ffmpeg-074a00d192c0e749d677b008b337da42597e780f.tar.gz |
lavr: add a public function for setting a custom channel map
This allows reordering, duplication, and silencing of input channels.
Diffstat (limited to 'libavresample/audio_convert.h')
-rw-r--r-- | libavresample/audio_convert.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavresample/audio_convert.h b/libavresample/audio_convert.h index 7d47b15bf3..6a3089d4fb 100644 --- a/libavresample/audio_convert.h +++ b/libavresample/audio_convert.h @@ -58,12 +58,14 @@ void ff_audio_convert_set_func(AudioConvert *ac, enum AVSampleFormat out_fmt, * @param in_fmt input sample format * @param channels number of channels * @param sample_rate sample rate (used for dithering) + * @param apply_map apply channel map during conversion * @return newly-allocated AudioConvert context */ AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, - int channels, int sample_rate); + int channels, int sample_rate, + int apply_map); /** * Free AudioConvert. |