aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_options.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-16 23:27:26 -0400
committerPaul Gilbert2016-09-16 23:27:26 -0400
commit42894542330d79990b340fb5425b71ac7eaf140e (patch)
tree8fb57778ec6415eca971c128474a8503145590f1 /engines/xeen/dialogs_options.cpp
parent466bfa0fb30b837cc7057f40cd7bf54d238c4a70 (diff)
downloadscummvm-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.cpp5
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();