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/scripts.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/scripts.cpp')
-rw-r--r-- | engines/xeen/scripts.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 0bf1792b26..64b387499d 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1095,9 +1095,8 @@ void Scripts::cmdSeatTextSml(Common::Array<byte> ¶ms) { void Scripts::cmdPlayEventVoc(Common::Array<byte> ¶ms) { Sound &sound = *_vm->_sound; - sound.playSample(nullptr, 0); - File f(EVENT_SAMPLES[params[0]]); - sound.playSample(&f, 1); + sound.stopSound(); + sound.playSound(EVENT_SAMPLES[params[0]], 1); cmdNoAction(params); } |