aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/preagi_common.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-11-19 20:34:26 +0000
committerEugene Sandulenko2007-11-19 20:34:26 +0000
commit8a145bbb53eb82e18a31b39dcb5eba522940fd6d (patch)
tree9f5da5f1db864f889411c9692daeb3fa68020c15 /engines/agi/preagi_common.cpp
parentd86246308d31b898ca22462de3a68910b52e0eb1 (diff)
downloadscummvm-rg350-8a145bbb53eb82e18a31b39dcb5eba522940fd6d.tar.gz
scummvm-rg350-8a145bbb53eb82e18a31b39dcb5eba522940fd6d.tar.bz2
scummvm-rg350-8a145bbb53eb82e18a31b39dcb5eba522940fd6d.zip
Hook PC Speaker to Troll's Tale. Though pitch and duration are wrong
svn-id: r29569
Diffstat (limited to 'engines/agi/preagi_common.cpp')
-rw-r--r--engines/agi/preagi_common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/agi/preagi_common.cpp b/engines/agi/preagi_common.cpp
index 65e59892d6..a2eec53e95 100644
--- a/engines/agi/preagi_common.cpp
+++ b/engines/agi/preagi_common.cpp
@@ -190,4 +190,9 @@ int PreAgiEngine::getSelection(SelectionTypes type) {
return 0;
}
+void PreAgiEngine::playNote(int16 frequency, int32 length) {
+ _speakerStream->play(Audio::PCSpeaker::kWaveFormSquare, frequency, length);
+ _vm->_system->delayMillis(duration);
+}
+
}