crash with wxSound

Hi,

I have a crash using wxSound under ms Windows :

I make a sound file with the python wave module and I play it

with wxSound :

w.writeframes(data)
w.close()

s = wxSound(‘test.wav’) # OK

s.IsOk() # OK

s.Play() # Crash sometimes …

But when I read the file test.wav after restarting python, it works.

I thought that it was a problem with flushing the file but the wave

module already flush the data before closing the file…

Does someone have any idea about this problem ?

Thanks.

O.R

Olivier Ravard wrote:

Hi,
I have a crash using wxSound under ms Windows :

Which version of wxPython?

I make a sound file with the python wave module and I play it
with wxSound :
...
w.writeframes(data)
w.close()
s = wxSound('test.wav') # OK
s.IsOk() # OK
s.Play() # Crash sometimes ...
But when I read the file test.wav after restarting python, it works.
I thought that it was a problem with flushing the file but the wave
module already flush the data before closing the file...
Does someone have any idea about this problem ?

Please create a small sample application that demonstrates the problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!