mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-07 09:14:11 +00:00
changed the dig music into stream sound
svn-id: r5054
This commit is contained in:
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user