1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-07 23:02:07 +00:00

Horrible hack to attenuate stereo sources properly.

OpenAL refuses to pan stereo sources, so apparently
it needs to be done this way.
This commit is contained in:
fgenesis 2013-07-22 05:35:50 +02:00
commit f5da61fe78
4 changed files with 84 additions and 11 deletions

View file

@ -2767,6 +2767,8 @@ luaFunc(entity_playSfx)
sfx.name = getString(L, 2);
sfx.freq = lua_tonumber(L, 3);
sfx.vol = lua_tonumber(L, 4);
if(sfx.vol <= 0)
sfx.vol = 1;
sfx.loops = lua_tonumber(L, 5);
float fadeOut = lua_tonumber(L, 6);