diff options
author | Max Horn | 2003-05-03 17:50:04 +0000 |
---|---|---|
committer | Max Horn | 2003-05-03 17:50:04 +0000 |
commit | 7e58986519a8036f920b76b8a232eeb235adb901 (patch) | |
tree | b4acd4eb6059e1959ddea067f819bbfb3aa0bf10 /scumm | |
parent | 6d3ba60745e616479a50da721df26bbdbfe5babf (diff) | |
download | scummvm-rg350-7e58986519a8036f920b76b8a232eeb235adb901.tar.gz scummvm-rg350-7e58986519a8036f920b76b8a232eeb235adb901.tar.bz2 scummvm-rg350-7e58986519a8036f920b76b8a232eeb235adb901.zip |
only moved stuff (to group sound related stuff)
svn-id: r7288
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v5.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 60c8675f1f..e2b3231612 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1292,15 +1292,6 @@ void Scumm_v5::o5_equalZero() { o5_jumpRelative(); } -void Scumm_v5::o5_isSoundRunning() { - int snd; - getResultPos(); - snd = getVarOrDirectByte(0x80); - if (snd) - snd = _sound->isSoundRunning(snd); - setResult(snd); -} - void Scumm_v5::o5_jumpRelative() { _scriptPointer += (int16)fetchScriptWord(); } @@ -1996,6 +1987,32 @@ void Scumm_v5::o5_setVarRange() { } while (--a); } +void Scumm_v5::o5_startMusic() { + _sound->addSoundToQueue(getVarOrDirectByte(0x80)); +} + +void Scumm_v5::o5_startSound() { + _vars[VAR_MUSIC_TIMER] = 0; + _sound->addSoundToQueue(getVarOrDirectByte(0x80)); +} + +void Scumm_v5::o5_stopMusic() { + _sound->stopAllSounds(); +} + +void Scumm_v5::o5_stopSound() { + _sound->stopSound(getVarOrDirectByte(0x80)); +} + +void Scumm_v5::o5_isSoundRunning() { + int snd; + getResultPos(); + snd = getVarOrDirectByte(0x80); + if (snd) + snd = _sound->isSoundRunning(snd); + setResult(snd); +} + void Scumm_v5::o5_soundKludge() { int items[16]; int i; @@ -2020,10 +2037,6 @@ void Scumm_v5::o5_soundKludge() { _sound->soundKludge(items, num); } -void Scumm_v5::o5_startMusic() { - _sound->addSoundToQueue(getVarOrDirectByte(0x80)); -} - void Scumm_v5::o5_startObject() { int obj, script; int data[16]; @@ -2054,15 +2067,6 @@ void Scumm_v5::o5_startScript() { runScript(script, a, b, data); } -void Scumm_v5::o5_startSound() { - _vars[VAR_MUSIC_TIMER] = 0; - _sound->addSoundToQueue(getVarOrDirectByte(0x80)); -} - -void Scumm_v5::o5_stopMusic() { - _sound->stopAllSounds(); -} - void Scumm_v5::o5_stopObjectCode() { stopObjectCode(); } @@ -2081,10 +2085,6 @@ void Scumm_v5::o5_stopScript() { stopScriptNr(script); } -void Scumm_v5::o5_stopSound() { - _sound->stopSound(getVarOrDirectByte(0x80)); -} - void Scumm_v5::o5_stringOps() { int a, b, c, i; byte *ptr; |