Python/Pygame mixer/audio


relliker

Member
Joined
Oct 16, 2009
Messages
290
Age
54
Location
EU
Hi,


Anybody managed to get audio output using the pygame mixer?


Pygame audio works fine in windows but I can't get any audio in Linux when I transfer the program over. ( I only do some small changes like import "_numpy" instead of just "numpy" for Linux)


EDIT: by Linux I mean Angstrom Linux on the Pandora.


I'm using the mixer functions only, not sndarray and there are no error messages being returned. The programs works as if it processed the audio but I hear nothing.


I'm loading 5 short .wav (mono, 44100 sampling rate) files and playing them back at different points in the program.


Thanks for any input.


relliker


EDIT 2: uhm, found the issue but thanks anyway for whoever was reading the topic. I was using unsigned (value 16 for bits) instead of signed (-16) in the mixer pre_init settings. It works both ways in windows for some reason. Maybe we'll just leave the topic as a note to whoever might encounter the issue in future :)
 
Last edited by a moderator:
lol, thanks TrashyMG. Your input much appreciated!!
 
Last edited by a moderator:
Back
Top