Fix sound effects in Sword1 PSX, regression from r47132.
svn-id: r47176
This commit is contained in:
parent
5cfd241af9
commit
f263393ef0
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ void Sound::playSample(QueueElement *elem) {
|
||||||
|
|
||||||
if (SwordEngine::isPsx()) { ;
|
if (SwordEngine::isPsx()) { ;
|
||||||
uint32 size = READ_LE_UINT32(sampleData);
|
uint32 size = READ_LE_UINT32(sampleData);
|
||||||
Audio::AudioStream *audStream = new Audio::VagStream(new Common::MemoryReadStream(sampleData + 4, size-4), _fxList[elem->id].type == FX_LOOP);
|
Audio::AudioStream *audStream = Audio::makeLoopingAudioStream(new Audio::VagStream(new Common::MemoryReadStream(sampleData + 4, size-4)), (_fxList[elem->id].type == FX_LOOP) ? 0 : 1);
|
||||||
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &elem->handle, audStream, elem->id, volume, pan, false, false, false);
|
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &elem->handle, audStream, elem->id, volume, pan, false, false, false);
|
||||||
} else {
|
} else {
|
||||||
uint32 size = READ_LE_UINT32(sampleData + 0x28);
|
uint32 size = READ_LE_UINT32(sampleData + 0x28);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue