Page 1 of 1

Multi-channel audio playback on GNU/Linux?

Posted: Sat Aug 07, 2021 5:06 pm
by spiritgamer
Hello

I want to send audio to a multi-channel speaker setup (5.1: front left, front center, front right, rear left, rear right and a subwoofer). I would like to either play a sound directly to each channel or, even better, make use of the positional audio API so that it distributes the audio according to the specified position).

I was searching the documentation API and then the Internet trying to find how to send audio to a multichannel setup, but I couldn't find anything. By testing the positional audio API, it seems that Löve engine ignores that I have a multichannel setup and send positional audio only as 2 channels (regular stereo).

I've also found a question similar to mine, but in a thread from 2018.
https://love2d.org/forums/viewtopic.php ... ltichannel

I've also found an API that can list devices, but only for input (microphones). So:

1. How can I use a multi-channel audio speaker setup?
2. Is there an API for listing and then using playback devices?

Thanks

Re: Multi-channel audio playback on GNU/Linux?

Posted: Sun Aug 08, 2021 2:41 pm
by zorg
The other thread basically includes everything that there is to say on this issue; nothing has changed in that regard with the framework; it still only supports stereo at most, and you would need to expose OpenALSoft's required capabilities (e.g. multichannel output support) if you want to use such a thing. (Feel free to submit a pull request to the löve github if you do implement it though.)

As for playback devices, no löve api exists to choose them either.

So yeah, no to both points.