You are not logged in.
Pages: 1
Dont work sounds and music in the library Pygame. The Pygame and Python dont show any messages or errors. I tried to use python2-pygame (for Python 2) and python-pygame-hg (Python 3) from AUR. All work fine besides of sounds and music. Has anyone had this problem?
Offline
Have you started' em from the console and see what output giving?
do it good first, it will be faster than do it twice the saint
Offline
nothing
Offline
My soundcard works fine. I can listen music. I tried to change arguments from pygame.mixer.pre_init() and init(). I tried different formats - ogg, wav. I tried run programs with Python2 and Python3. Programs work beautiful but there are no music and sounds.
Offline
What program are you trying to run? Is it your own code? Please post the code.
If you just want to test sound in Pygame, install the package "pathological" and run the game ("pathological"). You should hear sound as soon as the main menu appears. You can also look at the source code and audio files from pathological to see how it works.
Offline
thank you drcouzelis! But i has localized problem. I run my code in Debian Wheezy and it works beatiful. Unfortunately it dont work in Archlinux. Probably some related packet has bug in Archlinux. Maybe these are sdl_mixer, sdl_sound. I upgraded sdl and related libraries but it didnt help me.
P.S: In pathological sound dont work too.
Offline
I had assumption the problem is localized in sdl_mixer. Because python2-pygame and python-pygame-hg depend on sdl_mixer. Probably its wrong thought. I will create bug report for python2-pygame
Last edited by grishnan (2014-11-23 21:51:52)
Offline
What version of Python are you using?
The default version of Python in Debian is Python 2.
The default version of Python in Arch Linux is Python 3.
...although this wouldn't explain why sound didn't work in pathological. What sound server are you using? Are you using ALSA? OSS? PulseAudio?
Are there any messages or output at the command line when you start pathological?
Last edited by drcouzelis (2014-11-23 22:26:16)
Offline
Pages: 1