diff options
author | Sven Hesse | 2012-07-08 00:46:24 +0200 |
---|---|---|
committer | Sven Hesse | 2012-07-30 01:44:46 +0200 |
commit | 9c32fd2360d9fa18ceac6fefc571c6610965d361 (patch) | |
tree | 8e3d317cc816038f8df6936eed1bf9f6f071f4f8 /engines/gob | |
parent | 6533047514d0ab1cc7273a0c071fa24b6c2f7b71 (diff) | |
download | scummvm-rg350-9c32fd2360d9fa18ceac6fefc571c6610965d361.tar.gz scummvm-rg350-9c32fd2360d9fa18ceac6fefc571c6610965d361.tar.bz2 scummvm-rg350-9c32fd2360d9fa18ceac6fefc571c6610965d361.zip |
GOB: Add PreGob::beep()
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/pregob/pregob.cpp | 4 | ||||
-rw-r--r-- | engines/gob/pregob/pregob.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/gob/pregob/pregob.cpp b/engines/gob/pregob/pregob.cpp index 033eea89f2..42b5a8fb9c 100644 --- a/engines/gob/pregob/pregob.cpp +++ b/engines/gob/pregob/pregob.cpp @@ -208,6 +208,10 @@ void PreGob::playSoundFile(const Common::String &file, int16 frequency, int16 re stopSound(); } +void PreGob::beep(int16 frequency, int32 length) { + _vm->_sound->speakerOn(frequency, length); +} + void PreGob::endFrame(bool doInput) { _vm->_draw->blitInvalidated(); _vm->_util->waitEndFrame(); diff --git a/engines/gob/pregob/pregob.h b/engines/gob/pregob/pregob.h index 686727b08b..da0de60dd8 100644 --- a/engines/gob/pregob/pregob.h +++ b/engines/gob/pregob/pregob.h @@ -142,6 +142,9 @@ protected: /** Play a sound until it ends or is interrupted by a keypress. */ void playSoundFile(const Common::String &file, int16 frequency = 0, int16 repCount = 0, bool interruptible = true); + /** Beep the PC speaker. */ + void beep(int16 frequency, int32 length); + // -- Input -- |