wx.Sound doesn't sound

Hi,
I'm trying to use wx.Sound in my app, but I hear no sound, even if I
don't get any error and, if I try to printout the output of
sound.Play, I get "True". I tryed a simple:

sound = wx.Sound('a.wav')
sound.Play(wx.SOUND_ASYNC)

and I downloaded the example from http://wiki.wxpython.org/Metronome.
I think it could be a problem with my kubuntu 10.10, since my sound
card is ok and so is the mixer (I can play from OS the wav file). Any
suggestion?

You may want to try running the debug build so you can see if there are any asserts that would give some clues about what is wrong. I think you can also set WXTRACE=sound in the environment with the debug version to get some additional log messages. Otherwise try asking about it on wx-users as I'm not familiar with the details in the wxSound code for *nix.

···

On 2/4/11 12:09 AM, andreaconsole wrote:

Hi,
I'm trying to use wx.Sound in my app, but I hear no sound, even if I
don't get any error and, if I try to printout the output of
sound.Play, I get "True". I tryed a simple:

sound = wx.Sound('a.wav')
sound.Play(wx.SOUND_ASYNC)

and I downloaded the example from Metronome - wxPyWiki.
I think it could be a problem with my kubuntu 10.10, since my sound
card is ok and so is the mixer (I can play from OS the wav file). Any
suggestion?

--
Robin Dunn
Software Craftsman