Stable: 2.4.3
Development: 2.5.0-alpha3
multichannel recordings
Hi,
First, of course many thanks for a great music player. It's a good job to write something so simple and intuitively to use.
Lately I have been looking into getting some multichannel recordings, as these start to be available for online purchase. As moc does not support over 2 channels I have been looking a bit into the code, but so far have not found where this limitation is coming from. Do you have any idea how and where to change the code to get multichannel to work? I have some programming experience, but not with sound-related applications. I'm using alsa as back-end.
By the way, the flac file plugin does not check for multichannel, so moc freezes (the server thread actually) when you try to play a multichannel file. If you want I could write a small patch to introduce this check.
I'm also finishing my PhD thesis, so I won't have as much time as I'd like the coming months, but I would really like to get multichannel to work.
Thanks again for moc and for your help
Maarten
fixed!
Check your email at this site for the patch. The issue was that one chunk of audio data was bigger than the alsa buffer, causing the server process to freeze until there was enough space in the buffer. I increased the size to 512 kB, which is enough for 6 channel, 32 bit and 192 kHz.
I included a second patch which removes the check for maximum 2 channels in the sndfile plugin as I can confirm multi channel waves work correctly now (and none of the other plugins check for the number of channels).
Maarten
Thanks, applied :) --
Thanks, applied :)
--
Damian Pietras - MOC developer
There really is no hardcoded
There really is no hardcoded limit for the number of channels beside the "[STEREO]" indicator. MOC doesn't support multichannel files because I don't have such a hardware (just a laptop with a stereo soundcard) and could never test that. If there are problems with such files, there are probably some small fixes that needs to be done in few places, so just debugging should be needed to get this work.
Patches are welcome :)
--
Damian Pietras - MOC developer