GOB: Add PreGob::beep()

This commit is contained in:
Sven Hesse 2012-07-08 00:46:24 +02:00
parent 6533047514
commit 9c32fd2360
2 changed files with 7 additions and 0 deletions

View File

@ -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();

View File

@ -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 --