Results 1 to 2 of 2

Thread: Beep Sound under linux

  1. #1
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Beep Sound under linux

    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...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Beep Sound under linux

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Deploying App on Linux
    By janus in forum Installation and Deployment
    Replies: 5
    Last Post: 6th May 2008, 21:18
  4. generating beep sound in Qt under linux platform
    By babusunlux in forum Qt Programming
    Replies: 10
    Last Post: 7th July 2006, 06:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.