From 728a045308e62579262bcf50d11fd5c37b6e26e0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 24 Jul 2008 10:31:37 +0000 Subject: cleanup svn-id: r33263 --- engines/tinsel/sound.cpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) (limited to 'engines/tinsel/sound.cpp') 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 -- cgit v1.2.3