Reads frequency divider from stdin (the interface act like how you beep on real PC speaker)
- Any number that valid to scanf's '%d' format
- Send EOF to stdin to stop the process
- Emulate PC speaker (emulating PIT operating mode)
- You can control how loud beeps are via your OS volume control panel
- Only accept whole numbers (yes this features because mimics limitations of PIT)
- Beeps very loud
(read https://wiki.osdev.org/Programmable_Interval_Timer#The_Oscillator for where the 1193182 number came from)
divider = round_nearest(1193182 / frequency)
- Beeps very loud if you didnt change the volume in control panel before use (Recommended volume is 25% for this program. yes im not lying it beep really loud)