ref: 9ff42d4d6cc230ed26ed4e421f0b795104473136
parent: 59247bdd26db2f47b7a7723359fc129546941af5
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Oct 14 17:39:11 EDT 2024
openal: set mono sources limit to 1k, which should be enough to cover some gigantic maps with many static sounds
--- a/snd_openal.c
+++ b/snd_openal.c
@@ -534,6 +534,7 @@
static int
alinit(const char *devname)
{
+ static ALCint attr[] = {ALC_MONO_SOURCES, 1024, 0};
ALCcontext *c;
int e;
@@ -550,7 +551,7 @@
free(curdev);
curdev = strdup(devname);
- c = alcCreateContext(dev, nil); ALERR();
+ c = alcCreateContext(dev, attr); ALERR();
if(c == nil){
closedev:
alcCloseDevice(dev); ALERR();