mpv/audio/filter
wm4 41aefce730 audio: switch to libavcodec channel order, use libavresample for mixing
Switch the internal channel order to libavcodec's. If the channel number
mismatches at some point, use libavresample for up- or downmixing.
Remove the old af_pan automatic downmixing.

The libavcodec channel order should be equivalent to WAVEFORMATEX order,
at least nowadays. reorder_ch.h assumes that WAVEFORMATEX and libavcodec
might be different, but all defined channels have the same mappings.

Remove the downmixing with af_pan as well as the channel conversion with
af_channels from af.c, and prefer af_lavrresample for this. The
automatic downmixing behavior should be the same as before (if the
--channels option is set to 2, which is the default, the audio output
is forced to 2 channels, and libavresample does all downmixing).

Note that mpv still can't do channel layouts. It will pick the default
channel layout according to the channel count. This will be fixed later
by passing down the channel layout as well.

af_hrtf depends on the order of the input channels, so reorder to ALSA
(for which this code was written). This is better than changing the
filter code, which is more risky.

ao_pulse can accept waveext order directly, so set that as channel
mapping.
2013-04-13 04:21:28 +02:00
..
af.c audio: switch to libavcodec channel order, use libavresample for mixing 2013-04-13 04:21:28 +02:00
af.h af: use af_lavrresample for format conversions, if possible 2013-04-13 04:21:27 +02:00
af_bs2b.c
af_center.c
af_channels.c
af_delay.c
af_drc.c
af_dummy.c audio/filter: replace pointless memcpys with assignments 2013-04-13 04:21:27 +02:00
af_equalizer.c
af_export.c
af_extrastereo.c
af_format.c af: use af_lavrresample for format conversions, if possible 2013-04-13 04:21:27 +02:00
af_hrtf.c audio: switch to libavcodec channel order, use libavresample for mixing 2013-04-13 04:21:28 +02:00
af_hrtf.h
af_karaoke.c
af_ladspa.c
af_lavcac3enc.c
af_lavrresample.c audio: switch to libavcodec channel order, use libavresample for mixing 2013-04-13 04:21:28 +02:00
af_pan.c
af_scaletempo.c audio/filter: replace pointless memcpys with assignments 2013-04-13 04:21:27 +02:00
af_sinesuppress.c
af_sub.c
af_surround.c
af_sweep.c
af_tools.c audio/filter: replace pointless memcpys with assignments 2013-04-13 04:21:27 +02:00
af_volume.c
control.h
dsp.h
equalizer.h
filter.c
filter.h
window.c
window.h