forked from Mirrors/openclonk
Play OpenAL sounds in front instead of rear for 5.1 surround setups [Win].
parent
bc2259d197
commit
ca3ae81658
|
@ -403,7 +403,7 @@ void C4SoundInstance::Execute()
|
|||
Mix_Volume(iChannel, (iVol * MIX_MAX_VOLUME) / (100 * 256));
|
||||
Mix_SetPanning(iChannel, Clamp((100 - iPan) * 256 / 100, 0, 255), Clamp((100 + iPan) * 256 / 100, 0, 255));
|
||||
#elif AUDIO_TK == AUDIO_TK_OPENAL
|
||||
alSource3f(iChannel, AL_POSITION, Clamp<float>(float(iPan)/100.0f, -1.0f, +1.0f), 0, 0.7f);
|
||||
alSource3f(iChannel, AL_POSITION, Clamp<float>(float(iPan)/100.0f, -1.0f, +1.0f), 0, -0.7f);
|
||||
alSourcef(iChannel, AL_GAIN, float(iVol) / (100.0f*256.0f));
|
||||
if (pitch_dirty)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue