wheatontrue 0 Newbie Poster

Dear all,

When I use the pymedia module to play a WAV that I've converted from an mp3 file, it plays it for me twice. I don't know why - my media player (i'm on linux, so mplayer) plays the WAV file only once.

Here's what I'm doing:

f= wave.open( '/home/user/Documents/Py/4048.wav','rb')
sampleRate= f.getframerate()
channels= f.getnchannels()
format= sound.AFMT_S16_LE
s= f.readframes( 300000 )
snd.play(s)