0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

ao_alsa: reorder channels from internal to alsa order

Currently, internal and alsa order are exactly the same, so this will do
absolutely nothing.
This commit is contained in:
wm4 2013-03-23 17:23:33 +01:00
parent e4da671820
commit f54909d4df

View File

@ -48,6 +48,7 @@
#include "ao.h"
#include "audio_out_internal.h"
#include "audio/format.h"
#include "audio/reorder_ch.h"
static const ao_info_t info =
{
@ -790,6 +791,11 @@ static int play(void* data, int len, int flags)
len = len / ao_data.outburst * ao_data.outburst;
num_frames = len / bytes_per_sample;
int bps = af_fmt2bits(ao_data.format) / 8;
reorder_channel_nch(data, AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT,
AF_CHANNEL_LAYOUT_ALSA_DEFAULT,
ao_data.channels, len / bps, bps);
//mp_msg(MSGT_AO,MSGL_ERR,"alsa-play: frames=%i, len=%i\n",num_frames,len);
if (!alsa_handler) {