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:
parent
e6680da428
commit
f5da61fe78
4 changed files with 84 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue