mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
GOB: Add PreGob::beep()
This commit is contained in:
parent
6533047514
commit
9c32fd2360
@ -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();
|
||||
|
@ -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 --
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user