changed the dig music into stream sound

svn-id: r5054
This commit is contained in:
Paweł Kołodziejski 2002-09-30 19:31:41 +00:00
parent a9c1eb6075
commit 5d6498faef

@ -977,7 +977,13 @@ void Sound::bundleMusicHandler(Scumm * scumm) {
byte * buffer = NULL; byte * buffer = NULL;
uint32 final_size = decode12BitsSample(ptr, &buffer, size); uint32 final_size = decode12BitsSample(ptr, &buffer, size);
_scumm->_mixer->playRaw(NULL, buffer, final_size, rate, SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_16BITS | SoundMixer::FLAG_STEREO); if (_scumm->_mixer->_channels[SoundMixer::NUM_CHANNELS - 1] == NULL) {
_scumm->_mixer->playStream(NULL, SoundMixer::NUM_CHANNELS - 1, buffer, final_size, rate,
SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_16BITS | SoundMixer::FLAG_STEREO);
} else {
_scumm->_mixer->append(SoundMixer::NUM_CHANNELS - 1, buffer, final_size, rate,
SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_16BITS | SoundMixer::FLAG_STEREO);
}
} }
void Sound::playBundleSound(char *sound) { void Sound::playBundleSound(char *sound) {