[Qt-interest] how to enable sound in Qt4?

ri at eeda.denso.co.jp ri at eeda.denso.co.jp
Tue Feb 17 01:37:32 CET 2009


I think beep()  has nothing to do with QSound.
 
how about modify your code to:
 
 
#include <QApplication>
int main(int argc, char *argv[])
{
 QApplication app(argc, argv);
 app.beep();
 return app.exec();
}
 
it works on my windows desktop.
 
 

________________________________

From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Chaitral 
Sent: Tuesday, February 17, 2009 12:34 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] how to enable sound in Qt4?


Hello all,
 Can anyone please tell me how to enable audible signals in QT4?
I have tried following:

#include <QApplication>
#include <qsound.h>
#include <QtGui>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    app.beep();
}

 The program is getting compiled successfully, but there is no sound while execution. I have also tried printf("a") but that is also not providing any sound.
I have successfully configured ALC882 analog device and I can hear test sounds. Can you point me to some demo application that I can try.
Following is the aditional information:

Card:
    Vendor: Intel Corp.
    Module: 82801H (ICH8 Family) HD Adio Controller
    Module: snd-hda-intel

ALSA Sound system information:
    ALSA driver version: Driver Version 1.0.15
    ALSA Lib package: alsa-lib-1.0.15-1.fc8
    ALSA Utils package: alsa-utils-1.0.15-1.fc8
    

Thanks in advance.


Regards,
Chaitral


Moneywiz <http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/1050715198@Middle5/2705210_2676711/2680353/1?PARTNER=3&OAS_QUERY=null> 	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090217/71f57ed2/attachment.html 


More information about the Qt-interest-old mailing list