[Qt-interest] How to make an alert sound?

Malyushytsky, Alex alex at wai.com
Sat Aug 22 01:59:22 CEST 2009


I don't aware of such support in QT.
I have no idea how information about wav file to be played for the specific event is stored by Windows.
But you can use Windows API to do it:
http://msdn.microsoft.com/en-us/library/ms680356(VS.85).aspx

Regards,
  Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of rajasekharan
Sent: Friday, August 21, 2009 3:53 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] How to make an alert sound?

Alex,

I understand playing a sound using QSound. I would like to play the
sounds that are configured to be played for specific events like an
exclamation, critical error, disallowed, new mail and so on. You can
find these settings under Control Panel > Sound > Sounds Tab in Windows
Vista (similar in previous versions). I am not looking for a way to play
a sound file directly but play the sound that has been configured to
play in windows (or linux if applicable). Other than fetching the sound
file set to be played for a particular event manually and playing that
sound, are there any easier ways.

Raj Sekharan


Malyushytsky, Alex wrote:
> Have you seen QSound?
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of rajasekharan
> Sent: Friday, August 21, 2009 12:31 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] How to make an alert sound?
>
> Hi all,
>
> Windows has a set of sounds configured to be played for particular
> events such as New mail received. Some non-microsoft
> applications are able to trigger it also, how can these alert sounds be
> triggered using a Qt Application?
>
> Thanks in advance,
>
> Raj Sekharan
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."




More information about the Qt-interest-old mailing list