aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tinsel/sound.cpp')
-rw-r--r--engines/tinsel/sound.cpp46
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