diff options
Diffstat (limited to 'audio/out/ao_portaudio.c')
-rw-r--r-- | audio/out/ao_portaudio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/out/ao_portaudio.c b/audio/out/ao_portaudio.c index 382523d08e..f84447bdb4 100644 --- a/audio/out/ao_portaudio.c +++ b/audio/out/ao_portaudio.c @@ -273,7 +273,11 @@ static int init(struct ao *ao, char *params) if (pa_device == paNoDevice) goto error_exit; - mp_chmap_reorder_to_alsa(&ao->channels); + // The actual channel order probably depends on the platform. + struct mp_chmap_sel sel = {0}; + mp_chmap_sel_add_waveext_def(&sel); + if (!ao_chmap_sel_adjust(ao, &sel, &ao->channels)) + goto error_exit; PaStreamParameters sp = { .device = pa_device, |