BEEP sound playback is supported.
When bits 0 and 1 of the system port are on, the frequency is played according to the count value of Ch.3 of PIT.
It is also possible to change the count value during playback.
When the PIT count value is set for both low and high, the playback frequency is updated.
Although it is implemented by the waveOut API, the generated sound buffer is played in a loop,
but the number of loops is specified without using the callback function, so if you continue playing the BEEP sound, it will play in
2 minutes. Stop.
It seems to be troublesome to use the callback function on the console, so it is a sloppy implementation (bitter smile)