View Full Version : Beep Sound under linux

6th June 2009, 10:48
Hi All,

I am working in linux. I want to generated beep sound on click of push buttons. In VC++
we have beep ( frequency , duration); like that any functions is their..??

I tried with QApplication::Beep() . But sound is not coming . Even i worked with QSound .
but i want on click of button sound has to come with specified frequency and duration specified...

7th June 2009, 09:55
There is QApplication::beep(). There is also an implementation of beep() in the curses library but linking against curses only so that you can make a beep seems not the best idea. You may use Phonon or QSound but you have to have your sound sample prepared beforehand. In Windows you can use the native call.