Ticket #8747: sword1-traffic-jarry-ressources.diff
File sword1-traffic-jarry-ressources.diff, 1008 bytes (added by , 17 years ago) |
---|
-
sound.cpp
33 33 #include "sword1/resman.h" 34 34 #include "sword1/logic.h" 35 35 #include "sword1/sword1.h" 36 #include "sword1/swordres.h" 36 37 37 38 #include "sound/flac.h" 38 39 #include "sound/mp3.h" … … 174 175 flags |= Audio::Mixer::FLAG_STEREO; 175 176 if (_fxList[elem->id].type == FX_LOOP) 176 177 flags |= Audio::Mixer::FLAG_LOOP; 178 //Workaround for FR #1266599 : Invert stereo channels for traffic sounds in Rue Jarry 179 if ((_fxList[elem->id].sampleId == FX_LITEVEHR || _fxList[elem->id].sampleId == FX_LITEVEHL || _fxList[elem->id].sampleId == FX_HVYVEHR || _fxList[elem->id].sampleId == FX_HVYVEHL) && _fxList[elem->id].roomVolList[cnt].roomNo == 9) 180 flags |= Audio::Mixer::FLAG_REVERSE_STEREO; 177 181 _mixer->playRaw(Audio::Mixer::kSFXSoundType, &elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan); 178 182 } 179 183 } else