diff options
author | Cameron Cawley | 2019-08-01 23:30:10 +0100 |
---|---|---|
committer | David Turner | 2019-08-02 00:08:58 +0100 |
commit | 837ac7e7ecabcc0b90885759b5c4278ec800bf82 (patch) | |
tree | b20f5ec71fb2affc06326aaca5f00d8334453e08 /engines/teenagent/teenagent.cpp | |
parent | cd8816428e11097131c3552e4eb635c11ce74b50 (diff) | |
download | scummvm-rg350-837ac7e7ecabcc0b90885759b5c4278ec800bf82.tar.gz scummvm-rg350-837ac7e7ecabcc0b90885759b5c4278ec800bf82.tar.bz2 scummvm-rg350-837ac7e7ecabcc0b90885759b5c4278ec800bf82.zip |
TEENAGENT: Add debug commands to play voices and sound effects
Diffstat (limited to 'engines/teenagent/teenagent.cpp')
-rw-r--r-- | engines/teenagent/teenagent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 85c21041ea..12f5123ad0 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -1032,15 +1032,15 @@ void TeenAgentEngine::wait(uint16 frames) { scene->push(event); } -void TeenAgentEngine::playSoundNow(byte id) { - uint size = res->sam_sam.getSize(id); +void TeenAgentEngine::playSoundNow(Pack *pack, byte id) { + uint size = pack->getSize(id); if (size == 0) { warning("skipping invalid sound %u", id); return; } byte *data = (byte *)malloc(size); - res->sam_sam.read(id, data, size); + pack->read(id, data, size); debug(3, "playing %u samples...", size); Audio::AudioStream *stream = Audio::makeRawStream(data, size, 11025, 0); |