Ticket #8747: sword1-traffic-jarry-ressources.diff

File sword1-traffic-jarry-ressources.diff, 1008 bytes (added by SF/richiefs, 16 years ago)

sword1-traffic-jarry-ressources.diff

  • sound.cpp

     
    3333#include "sword1/resman.h"
    3434#include "sword1/logic.h"
    3535#include "sword1/sword1.h"
     36#include "sword1/swordres.h"
    3637
    3738#include "sound/flac.h"
    3839#include "sound/mp3.h"
     
    174175                                                flags |= Audio::Mixer::FLAG_STEREO;
    175176                                        if (_fxList[elem->id].type == FX_LOOP)
    176177                                                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;
    177181                                        _mixer->playRaw(Audio::Mixer::kSFXSoundType, &elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
    178182                        }
    179183                } else