[wxMSW,wxGTK] A simple Beep, how?

Carsten A. Arnholm arnholm at offline.no
Tue Sep 25 14:41:24 PDT 2007


Hi,

I have a wxWidgets 2.8.4 application running on wxMSW and wxGTK. It 
sometimes needs to issue simple sound alarms. It should really not spend any 
resources working with sounds, so a direct equivalent to the Windows API 
function Beep(frequency,duration) is fine for this purpose.

I have looked around to see if I can make a "Beep sound" using wxWidgets, 
but I cannot find anything. There is a wxSound, but it needs a WAV file if I 
understand it correctly, and it seems a bit much.

Does a wxWidgets Beep exist?

-- 
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list