mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:15:08 +00:00
Kernel: Implement beep functionality in virtual consoles
This commit is contained in:
parent
4da7b543c6
commit
8dbbef9b5c
1 changed files with 4 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/DeviceManagement.h>
|
||||
#include <Kernel/Devices/HID/HIDManagement.h>
|
||||
#include <Kernel/Devices/PCSpeaker.h>
|
||||
#include <Kernel/Graphics/GraphicsManagement.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
#include <Kernel/Sections.h>
|
||||
|
@ -320,8 +321,9 @@ void VirtualConsole::flush_dirty_lines()
|
|||
|
||||
void VirtualConsole::beep()
|
||||
{
|
||||
// TODO
|
||||
dbgln("Beep!1");
|
||||
PCSpeaker::tone_on(440);
|
||||
IO::delay(10000);
|
||||
PCSpeaker::tone_off();
|
||||
}
|
||||
|
||||
void VirtualConsole::set_window_title(StringView)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue