diff options
author | Paul Gilbert | 2016-09-16 23:27:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-16 23:27:26 -0400 |
commit | 42894542330d79990b340fb5425b71ac7eaf140e (patch) | |
tree | 8fb57778ec6415eca971c128474a8503145590f1 /engines/xeen/dialogs_options.cpp | |
parent | 466bfa0fb30b837cc7057f40cd7bf54d238c4a70 (diff) | |
download | scummvm-rg350-42894542330d79990b340fb5425b71ac7eaf140e.tar.gz scummvm-rg350-42894542330d79990b340fb5425b71ac7eaf140e.tar.bz2 scummvm-rg350-42894542330d79990b340fb5425b71ac7eaf140e.zip |
XEEN: Cleanup of Sound driver
Diffstat (limited to 'engines/xeen/dialogs_options.cpp')
-rw-r--r-- | engines/xeen/dialogs_options.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/xeen/dialogs_options.cpp b/engines/xeen/dialogs_options.cpp index 72445bf055..b2390e344f 100644 --- a/engines/xeen/dialogs_options.cpp +++ b/engines/xeen/dialogs_options.cpp @@ -123,7 +123,6 @@ void OptionsMenu::showTitles2() { EventsManager &events = *_vm->_events; Sound &sound = *_vm->_sound; - File voc("elect.voc"); SpriteResource titleSprites("title2b.raw"); SpriteResource kludgeSprites("kludge.int"); SpriteResource title2Sprites[8] = { @@ -135,7 +134,7 @@ void OptionsMenu::showTitles2() { kludgeSprites.draw(screen, 0); screen.saveBackground(); - sound.playSample(&voc, 0); + sound.playSound("elect.voc"); for (int i = 0; i < 30 && !_vm->shouldQuit(); ++i) { events.updateGameCounter(); @@ -144,7 +143,7 @@ void OptionsMenu::showTitles2() { screen._windows[0].update(); if (i == 19) - sound.playSample(nullptr, 0); + sound.stopSound(); while (!_vm->shouldQuit() && events.timeElapsed() < 2) events.pollEventsAndWait(); |