diff options
author | Max Horn | 2008-01-05 20:49:18 +0000 |
---|---|---|
committer | Max Horn | 2008-01-05 20:49:18 +0000 |
commit | 8b12998c72409743139f694ae7a23722a8052082 (patch) | |
tree | 63fc32909688270aa037006467b9ec1013fc7f34 /engines/scumm/imuse_digi/dimuse_track.cpp | |
parent | c9a8d02f6ef8f2f67b6c24228ff043ba975241c5 (diff) | |
download | scummvm-rg350-8b12998c72409743139f694ae7a23722a8052082.tar.gz scummvm-rg350-8b12998c72409743139f694ae7a23722a8052082.tar.bz2 scummvm-rg350-8b12998c72409743139f694ae7a23722a8052082.zip |
Use souStreamUsed to distinguish between 'stream' and 'streamSou' usage
svn-id: r30257
Diffstat (limited to 'engines/scumm/imuse_digi/dimuse_track.cpp')
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_track.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_track.cpp b/engines/scumm/imuse_digi/dimuse_track.cpp index 402385aa2c..0f1cd8ba8e 100644 --- a/engines/scumm/imuse_digi/dimuse_track.cpp +++ b/engines/scumm/imuse_digi/dimuse_track.cpp @@ -114,13 +114,16 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, int bits = 0, freq = 0, channels = 0; - if (input) { + track->souStreamUsed = (input != 0); + + if (track->souStreamUsed) { track->feedSize = 0; - track->souStreamUsed = true; track->soundName[0] = 0; track->soundDesc = NULL; + track->streamSou = input; + track->stream = NULL; + track->mixerStreamRunning = false; } else { - track->souStreamUsed = false; strcpy(track->soundName, soundName); track->soundDesc = _sound->openSound(soundId, soundName, soundType, volGroupId, -1); @@ -162,13 +165,7 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, if (track->sndDataExtComp) track->mixerFlags |= kFlagLittleEndian; #endif - } - if (input) { - track->streamSou = input; - track->stream = NULL; - track->mixerStreamRunning = false; - } else { const int pan = (track->pan != 64) ? 2 * track->pan - 127 : 0; const int vol = track->vol / 1000; Audio::Mixer::SoundType type = Audio::Mixer::kPlainSoundType; |