Hi!
We had that topc a lot of times.
And we had a lot of problems.
PC-Speaker is often no more on board - that saves 0.50 € in the production.
The bell is often missing in Linux.
The hooks are available in sysutils.
We do it like Windows does:
We use the Sound-System.
aplay is the default interface to Alsa and available on (nearly) all Linux distros.
Midnight productions:
I created the stand alone unit
beepbeep which only needs its include file
BellString.incPut both files in the same directory. No matter if it is a separate directory or
your current project directory.
Add
beepbeep to the uses list.
If you are lazy that's all.
With every 'beep' in your code you hear a nice door chime.
If that does not fit your taste you need the only procedure in the interface:
procedure setUserBell( BellWave : string);
To keep the things simple this must be a WAV file.
Now with every beep you hear the sound selected by you.
KDE comes with a lot of WAV files. If you don't have another source.
Ding Dong.
Winni