Play OpenAL sounds in front instead of rear for 5.1 surround setups [Win].

lights3
Sven Eberhardt 2015-08-29 07:26:36 -04:00
parent bc2259d197
commit ca3ae81658
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{