diff options
author | Max Horn | 2008-07-24 10:31:37 +0000 |
---|---|---|
committer | Max Horn | 2008-07-24 10:31:37 +0000 |
commit | 728a045308e62579262bcf50d11fd5c37b6e26e0 (patch) | |
tree | f4328fea9a226340d3247d31d3e4789adfcb81da /engines/tinsel/sound.cpp | |
parent | ba1f91eba80dd6f65101d4461fdd4b8612a12c7b (diff) | |
download | scummvm-rg350-728a045308e62579262bcf50d11fd5c37b6e26e0.tar.gz scummvm-rg350-728a045308e62579262bcf50d11fd5c37b6e26e0.tar.bz2 scummvm-rg350-728a045308e62579262bcf50d11fd5c37b6e26e0.zip |
cleanup
svn-id: r33263
Diffstat (limited to 'engines/tinsel/sound.cpp')
-rw-r--r-- | engines/tinsel/sound.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/engines/tinsel/sound.cpp b/engines/tinsel/sound.cpp index 0a3b01089f..e2a24dbd47 100644 --- a/engines/tinsel/sound.cpp +++ b/engines/tinsel/sound.cpp @@ -43,9 +43,6 @@ namespace Tinsel { //--------------------------- General data ---------------------------------- -// get set when music/sample driver is installed -static bool bInstalled = false; - SoundManager::SoundManager(TinselEngine *vm) : //_vm(vm), // TODO: Enable this once global _vm var is gone _sampleIndex(0), _sampleIndexLen(0) { @@ -211,47 +208,4 @@ void SoundManager::openSampleFiles(void) { */ } -/** - * Initialises the sound driver. - */ - -bool SoundInit(void) { - if (!bInstalled) { -// if (mDriver != NULL) { - if (true) { // TODO: Check that a MIDI music output device is available - // open MIDI files - OpenMidiFiles(); - } - - if (_vm->_mixer->isReady()) { - // open sample files - _vm->_sound->openSampleFiles(); - } - bInstalled = true; - return true; - } else { - // already installed - return false; - } -} - - -/** - * De-initialises the sound driver. - */ - -bool SoundDeinit(void) { - if (bInstalled) { - bInstalled = false; - AudioCD.stop(); - StopMidi(); - _vm->_sound->stopAllSamples(); - DeleteMidiBuffer(); - return true; - } else { - // not installed - return false; - } -} - } // end of namespace Tinsel |