diff options
author | Joseph-Eugene Winzer | 2017-06-24 13:43:42 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-22 23:42:08 +0000 |
commit | cd080b820a5b402c060dd901e8f76bd5e0d3a143 (patch) | |
tree | 8bfd0f9cad084efe4aafa76b3b2e5d24a30dcced /engines/supernova/console.cpp | |
parent | 6c4768a051b64f14af47c343f589b3bee34aba0a (diff) | |
download | scummvm-rg350-cd080b820a5b402c060dd901e8f76bd5e0d3a143.tar.gz scummvm-rg350-cd080b820a5b402c060dd901e8f76bd5e0d3a143.tar.bz2 scummvm-rg350-cd080b820a5b402c060dd901e8f76bd5e0d3a143.zip |
SUPERNOVA: Buffers audio samples on startup
Diffstat (limited to 'engines/supernova/console.cpp')
-rw-r--r-- | engines/supernova/console.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/supernova/console.cpp b/engines/supernova/console.cpp index 98875ecba6..96f97b71ce 100644 --- a/engines/supernova/console.cpp +++ b/engines/supernova/console.cpp @@ -53,15 +53,13 @@ bool Console::cmdRenderImage(int argc, const char **argv) { } bool Console::cmdPlaySound(int argc, const char **argv) { - if (argc != 3) { - debugPrintf("Usage: play [filenumber] [offset]\n"); + if (argc != 2) { + debugPrintf("Usage: play [0-%d]\n", kAudioNumSamples - 1); return true; } - int filenumber = atoi(argv[1]); - int offset = atoi(argv[2]); - - _vm->playSound(filenumber, offset); + int sample = Common::String(argv[1]).asUint64(); + _vm->playSound(static_cast<AudioIndex>(sample)); return true; } |