[LAD] Replacement for KbdCtl.bell

Joel Roth joelz at pobox.com
Fri Feb 4 11:02:47 CET 2022


On Fri, Feb 04, 2022 at 10:49:59AM +0100, Peter wrote:
> 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.

1200Hz for 10s

ecasound -i:tone,sine,1200,10 -o:jack,system

> Best regards,
> Peter
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> https://lists.linuxaudio.org/listinfo/linux-audio-dev

-- 
Joel Roth


More information about the Linux-audio-dev mailing list