diff options
author | Paul Gilbert | 2014-02-28 20:37:42 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-28 20:37:42 -0500 |
commit | badb8d97444767b7d8fea0f877ac044249696a5f (patch) | |
tree | bc3d5b66b4c0803080b92b0103c389097e72bf60 /engines/mads/nebular | |
parent | c49d7196fcabf18d9e97711f67b864808ca7848a (diff) | |
download | scummvm-rg350-badb8d97444767b7d8fea0f877ac044249696a5f.tar.gz scummvm-rg350-badb8d97444767b7d8fea0f877ac044249696a5f.tar.bz2 scummvm-rg350-badb8d97444767b7d8fea0f877ac044249696a5f.zip |
MADS: More work implementing scene info loading
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r-- | engines/mads/nebular/sound_nebular.cpp | 20 | ||||
-rw-r--r-- | engines/mads/nebular/sound_nebular.h | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp index dba4b363bb..5f1d80513e 100644 --- a/engines/mads/nebular/sound_nebular.cpp +++ b/engines/mads/nebular/sound_nebular.cpp @@ -300,10 +300,10 @@ byte *ASound::loadData(int offset, int size) { void ASound::playSound(int offset, int size) { // Load the specified data block - playSound(loadData(offset, size)); + playSoundData(loadData(offset, size)); } -void ASound::playSound(byte *pData, int startingChannel) { +void ASound::playSoundData(byte *pData, int startingChannel) { // Scan for a high level free channel for (int i = startingChannel; i < ADLIB_CHANNEL_COUNT; ++i) { if (!_channels[i]._activeCount) { @@ -1020,7 +1020,7 @@ int ASound1::command19() { int ASound1::command20() { byte *pData = loadData(0xD18, 28); if (!isSoundActive(pData)) - playSound(pData); + playSoundData(pData); return 0; } @@ -1034,7 +1034,7 @@ int ASound1::command22() { pData[6] = (getRandomNumber() & 7) + 85; if (!isSoundActive(pData)) - playSound(pData); + playSoundData(pData); return 0; } @@ -1055,7 +1055,7 @@ int ASound1::command24() { int ASound1::command25() { byte *pData = loadData(0xD82, 16); if (!isSoundActive(pData)) - playSound(pData); + playSoundData(pData); return 0; } @@ -1091,7 +1091,7 @@ int ASound1::command29() { pData[7] = pData[13] = pData[21] = pData[27] = v; if (!isSoundActive(pData)) - playSound(pData, 0); + playSoundData(pData, 0); return 0; } @@ -1101,7 +1101,7 @@ int ASound1::command30() { pData[7] = (command2627293032() + 0x40) & 0xFF; if (!isSoundActive(pData)) - playSound(pData, 0); + playSoundData(pData, 0); return 0; } @@ -1109,7 +1109,7 @@ int ASound1::command30() { int ASound1::command31() { byte *pData = loadData(0xDAE, 14); if (!isSoundActive(pData)) - playSound(pData); + playSoundData(pData); return 0; } @@ -1121,7 +1121,7 @@ int ASound1::command32() { pData[11] = pData[19] = pData[27] = pData[35] = v >> 8; if (!isSoundActive(pData)) - playSound(pData, 0); + playSoundData(pData, 0); return 0; } @@ -1139,7 +1139,7 @@ int ASound1::command34() { byte *pData = loadData(0xDD0, 22); pData[8] = pData[15] = v; - playSound(pData); + playSoundData(pData); return 0; } diff --git a/engines/mads/nebular/sound_nebular.h b/engines/mads/nebular/sound_nebular.h index c7a28620be..caafdcaf77 100644 --- a/engines/mads/nebular/sound_nebular.h +++ b/engines/mads/nebular/sound_nebular.h @@ -228,7 +228,7 @@ protected: * @param pData Pointer to data block containing sound data * @param startingChannel Channel to start scan from */ - void playSound(byte *pData, int startingChannel = ADLIB_CHANNEL_COUNT); + void playSoundData(byte *pData, int startingChannel = ADLIB_CHANNEL_MIDWAY); /** * Checks to see whether the given block of data is already loaded into a channel. @@ -312,7 +312,7 @@ public: * @param commandId Player ommand to execute. * @param param Optional parameter used by a few commands */ - virtual int command(int commandId, int param = 0) = 0; + virtual int command(int commandId, int param) = 0; /** * Stop all currently playing sounds @@ -402,7 +402,7 @@ private: public: ASound1(Audio::Mixer *mixer); - virtual int command(int commandId, int param = 0); + virtual int command(int commandId, int param); }; } // End of namespace Nebular |