Multi-channel audio playback on GNU/Linux?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
spiritgamer
Prole
Posts: 1
Joined: Sat Aug 07, 2021 4:48 pm

Multi-channel audio playback on GNU/Linux?

Post 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
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post 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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests