aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_towns.cpp
diff options
context:
space:
mode:
authorMax Horn2007-03-02 15:26:22 +0000
committerMax Horn2007-03-02 15:26:22 +0000
commit029b8c43238ab363bcc1c518b3c4de312b240ae1 (patch)
treea5c171c2759e030b5456a7b367751bf700e7e69e /engines/kyra/sound_towns.cpp
parentd8cf10926b27c86e13755b0132fca4de6931f86c (diff)
downloadscummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.tar.gz
scummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.tar.bz2
scummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.zip
Changed the order of the parameters of makeLinearInputStream to resemble Mixer::playRaw; also made makeLinearInputStream honor FLAG_LOOP (and for this, changed its loop related params slightly)
svn-id: r25926
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r--engines/kyra/sound_towns.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 8413cc2ba9..84beeef453 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -241,9 +241,10 @@ void SoundTowns::playSoundEffect(uint8 track) {
playbackBufferSize -= 0x20;
setPitch(sfxPlaybackBuffer, playbackBufferSize, sfxHeader->pitch, pitch);
- _currentSFX = Audio::makeLinearInputStream(0x2b11,
+ _currentSFX = Audio::makeLinearInputStream(sfxPlaybackBuffer, playbackBufferSize,
+ 0x2b11,
Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_LITTLE_ENDIAN | Audio::Mixer::FLAG_AUTOFREE,
- sfxPlaybackBuffer, playbackBufferSize, 0, 0);
+ 0, 0);
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_sfxHandle, _currentSFX);
}