[fpc-pascal] simple sound implementation

Sebastian Günther sguenther at gmx.de
Sun Sep 2 16:56:26 CEST 2007


Marc Santhoff schrieb:
> 
> Ahem, maybe you know how to control the volume, too?

Naturally, this is not possible: The PC speaker is simply controlled by 
a timer, which creates a square wave (on/off). In ancient DOS times 
there was a trick by doing a frequency modulation, i.e. you turn the 
timer on and off quite fast. But on Linux etc. the drivers don't support 
such cheats.


- Sebastian



More information about the fpc-pascal mailing list