I'm using pygame and I'm trying to play wav files but it's not going great. Code is as simple as:
import pygame pygame.mixer.init() pygame.mixer.music.load("01.wav") pygame.mixer.music.play()
but I'm still having I've only managed to play a mono wav file (less than 500KB in
I couldn't play a 44100 Hz, 16bit, stereo file, got this error:
*** glibc detected *** python: double free or corruption (!prev): 0x01b1f1fa8
I've split channels, deleted one and saved the same wav file as mono and the sound plays but I head a pop at the start and end of playback and get this message:
ALSA lib pcm.c:7339(snd_pcm_recover) underrun occurred
I've tried different variants for the
pygame.mixer.init() call with various wav settings(frequency, bit depth, channels, buffer) but with no luck so far.
Also, I've done an apt-get update and upgrade just in case, and no change.
Are all wav files supported ? If not what are the limitations ?