aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorMax Horn2007-02-03 19:05:53 +0000
committerMax Horn2007-02-03 19:05:53 +0000
commitcb49cbdd456a97c6e10bdc279624603bd9bd7b60 (patch)
treed1ef8edbfbe237973b6cdef96434a17c24c9c122 /engines/sword1
parent9c5e62fb0408aeae98dcc9124c7090453768879d (diff)
downloadscummvm-rg350-cb49cbdd456a97c6e10bdc279624603bd9bd7b60.tar.gz
scummvm-rg350-cb49cbdd456a97c6e10bdc279624603bd9bd7b60.tar.bz2
scummvm-rg350-cb49cbdd456a97c6e10bdc279624603bd9bd7b60.zip
* Reimplemented Mixer::pauseAll to simply invoke pause on all channels
(implying change of semantics) * Reordered the params of Mixer::playRaw (the SoundType now comes first, not last) * Removed Mixer::isPaused * Removed Mixer::getSoundElapsedTimeOfSoundID * Added some doxygen comments to the Mixer svn-id: r25356
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index f699a4c475..fa4d9c3adc 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -172,7 +172,7 @@ void Sound::playSample(QueueElement *elem) {
flags |= Audio::Mixer::FLAG_STEREO;
if (_fxList[elem->id].type == FX_LOOP)
flags |= Audio::Mixer::FLAG_LOOP;
- _mixer->playRaw(&elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
+ _mixer->playRaw(Audio::Mixer::kSFXSoundType, &elem->handle, sampleData + 0x2C, size, 11025, flags, elem->id, volume, pan);
}
} else
break;
@@ -196,7 +196,7 @@ bool Sound::startSpeech(uint16 roomNo, uint16 localNo) {
uint32 size;
int16 *data = uncompressSpeech(index + _cowHeaderSize, sampleSize, &size);
if (data)
- _mixer->playRaw(&_speechHandle, data, size, 11025, SPEECH_FLAGS, SOUND_SPEECH_ID, speechVol, speechPan);
+ _mixer->playRaw(Audio::Mixer::kSFXSoundType, &_speechHandle, data, size, 11025, SPEECH_FLAGS, SOUND_SPEECH_ID, speechVol, speechPan);
}
#ifdef USE_MAD
else if (_cowMode == CowMp3) {