Decrease the number of sound channels to 8

Moderator: GZDoom Developers

Post Reply
Killer5
Posts: 9
Joined: Sun Dec 02, 2018 12:28 pm
Contact:

Decrease the number of sound channels to 8

Post by Killer5 »

When playing maps with many monsters it is nice to be able to reduce the number of sound channels in order to avoid hurting my ears when many monsters wake up at once. Currently the minimum number of sound channels allowed in gzdoom 3.7.2 is 64. Is it possible to allow gzdoom to reduce this number further to 8?
User avatar
Rachael
Posts: 13571
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Decrease the number of sound channels to 8

Post by Rachael »

As far as I know, this is not possible. However, there may be ways to run the sound though an audio compressor or something similar in order to decrease volume variation.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Decrease the number of sound channels to 8

Post by Graf Zahl »

This cannot be done. Modern sound engines are very bad at evicting sound channels properly and it'd also pose a significant hazard to modders because they'd have to be aware of such a limitation when designing their sound.
User avatar
Ichor
Posts: 1783
Joined: Wed Jul 23, 2003 9:22 pm

Re: Decrease the number of sound channels to 8

Post by Ichor »

You could try creating a SNDINFO and use $limit to reduce the amount of times a specific sound that can play at once.
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Decrease the number of sound channels to 8

Post by StroggVorbis »

This is basically the inverse of the problem I faced after GZDoom dropped FMod support. This is assuming you're running Windows:

-Download OpenAL Soft Win32/64 Binaries here: https://openal-soft.org/#download
-Extract the zip somewhere on your PC
-Run alsoft-config.exe from the folder with the same name
-Check "Enable Gain Limiter"
-Set the Sample Format to 32-bit Float
-Hit Apply and you're done
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”