[fpc-pascal] simple sound implementation

Marc Santhoff M.Santhoff at t-online.de
Mon Sep 3 06:30:15 CEST 2007


Am Sonntag, den 02.09.2007, 16:56 +0200 schrieb Sebastian G√ľnther:
> 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.

I understand.

And since the control-sequences-solution is linux console only I have to
understand that there is no platform independent way of making
distingishable beeps since the ancient times when the CPU was a 8086 at
4 or 6 MHz or so, too.

<mumbling curses censored/>

Thanks for explaning,
Marc





More information about the fpc-pascal mailing list