a_startound mono/stereo manipulation flags

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

a_startound mono/stereo manipulation flags

Postby comet1337 » Thu Jan 28, 2021 12:27 am

ways to change a sounds left and right channels in-game
such as flipping a stereo sounds channels, squashing a stereo sound into mono, and forcing a mono sound to either the left or right channel
even only playing one side of a stereo sound, and on a spcified side

im currently using a system with a_startsound that fakes stereo sound variation by using a pair of left/right only mono sound files, and adding slight differences to the variables
if i could simply set which channel a sound plays in, i could cut the number of sound files in half, even more if i could use stereo sounds the way mentioned above
User avatar
Joined: 25 Sep 2015
Location: elsewhere

Re: a_startound mono/stereo manipulation flags

Postby Graf Zahl » Thu Jan 28, 2021 1:25 am

I don't think the OpenAL backend can do what you want. This is something for Chris to answer.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Joined: 19 Jul 2003
Location: Germany

Re: a_startound mono/stereo manipulation flags

Postby Chris » Thu Jan 28, 2021 12:56 pm

OpenAL Soft itself can do most of this. You can't change the volume of each channel individually, but with the AL_EXT_STEREO_ANGLES extension (added in OpenAL Soft 1.18), you can move a source's left and right channels horizontally around the listener, including swapping their positions, putting them both in front, or both to one side or the other. GZDoom's sound backend interface doesn't have a way to control this though, that would need to be added for something like this to be possible.
User avatar
Joined: 17 Jul 2003

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests