PC Speaker: Difference between revisions

m
[unchecked revision][unchecked revision]
m (→‎Sample Code: <-- Added some comments and info on emulators)
Line 19:
= Sample Code =
 
This will work on real hardware, but may not on emulators. The code also changes the PIT timer 2 frequency, so you will have to reset that when your done "beep"ing :)
 
//Play sound using built in speaker
Line 51:
timer_wait(10);
nosound();
set_PIT //set_PIT_2(old_frequency);
}
 
Anonymous user