[wxMSW,wxGTK] A simple Beep, how?
Paul Koning
pkoning at equallogic.com
Tue Sep 25 14:51:21 PDT 2007
>>>>> "Carsten" == Carsten A Arnholm <arnholm at offline.no> writes:
Carsten> Hi,
Carsten> I have a wxWidgets 2.8.4 application running on wxMSW and
Carsten> wxGTK. It sometimes needs to issue simple sound alarms. It
Carsten> should really not spend any resources working with sounds,
Carsten> so a direct equivalent to the Windows API function
Carsten> Beep(frequency,duration) is fine for this purpose.
Carsten> I have looked around to see if I can make a "Beep sound"
Carsten> using wxWidgets, but I cannot find anything. There is a
Carsten> wxSound, but it needs a WAV file if I understand it
Carsten> correctly, and it seems a bit much.
Carsten> Does a wxWidgets Beep exist?
wxBell() is what you need. It works on Windows at least; my Linux
system stubbornly refuses to do anything with it. That's undoubtedly
a setup issue rather than a wx issue.
paul
More information about the wx-users
mailing list