[LAD] Replacement for KbdCtl.bell
Peter
list at schmitteckert.com
Fri Feb 4 10:49:59 CET 2022
Dear All,
inspired by the "A History of Audio on Linux somewhere?" I took a look at my
very old Linux Audio projects.
I have one which amazingly still compiles, namely FeigenSound from the Linux Magazin 03/2001,
however I can't hear the output, even when the pcspkr module is loaded.
I assume that todays Laptops just don't have speaker anymore.
There I was using the KbdCtl.bell_* to generate tones with a given frequency and duration:
// switch to new state
KbdCtl.bell_percent = 100;
KbdCtl.bell_pitch = Frequency;
KbdCtl.bell_duration = Duration;
XChangeKeyboardControl(pDisplay, KBBellPercent | KBBellPitch | KBBellDuration, &KbdCtl);
Is there still such a simple method available to generate a tone with a given duration and frequency.
Of course I could generate a corresponding array and send it to jackd, I'm just looking for something simple.
Best regards,
Peter
More information about the Linux-audio-dev
mailing list