-
Hello, I have a Moodeaudio installed that uses MPD to reproduce audio files. However, when I try to reproduce multichannel FLACs the audio channels are messed up. Is there some way to configure the correct audio channel mapping for MPD? I have been doing some tests (https://moodeaudio.org/forum/showthread.php?tid=6519&pid=55404#pid55404) and when I reproduce the files from the command line tool "aplay" it only swaps the LFE and center channels, but when I use the MPD it swaps more channels. Can the channel order be configured at the MPD level? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
There's the "route" filter plugin: https://mpd.readthedocs.io/en/stable/plugins.html#route |
Beta Was this translation helpful? Give feedback.
-
Where should I do the grep? In the conf files? In the source code?
El dv., 21 de juny 2024, 11:04, Max Kellermann ***@***.***>
va escriure:
… Internally, MPD uses the FLAC convention for channel assignment:
https://xiph.org/flac/format.html
ALSA uses a slightly different channel assignment; that's why MPD's ALSA
output plugin has to swap some channels; git grep keyword is
"alsa_channel_order".
MPD does not use any ALSA channel mapping API. I do not know this API;
what you posted is the kernel/userspace ABI description, but MPD doesn't
use that, but uses libasound instead.
—
Reply to this email directly, view it on GitHub
<#2060 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5XK3I34MK2AKJMFL6VK53ZIPUANAVCNFSM6AAAAABJQ4YSDWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TQMZXGY4TG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
I have managed to solve the issue applying a remaping at the level of ALSA. To be more specific, I have created a custom device that is a plugin that remaps the channels including this in "/etc/asound.conf":
This works better than the approach of the route plugin of MPD because it does not force the stereo audio to be played as multichannel (stereo is still played in two channels).
However, as Max mentioned the way to go is to implement in MPD the libasound chmap API. Thus by now I will use this workaround, but I will also add a fe…