[fpc-pascal] sound(FREQUENCY) on Linux ?

Steve Litt slitt at troubleshooters.com
Fri Apr 14 16:57:29 CEST 2023

Hi all,

On DOS and Windows programs using Turbo Pascal, I did the following to
make a sound of frequency FREQUENCY play through the speakers:


The following command stopped the tone:


These two commands don't work on Linux, according to my
experience and FPC documentation.

How do all of you on Linux play tones from FPC? I tried forking command:

speaker-test -t sine -f 880

The preceding plays the tone, but depending on duration and delays, it
also produces either unpleasant clicks or nasty interference
frequencies between notes and so isn't adequate to play little tunes.

How are all of you playing tones through speakers in Linux?



Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times

More information about the fpc-pascal mailing list