[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame hangs with some mp3 files and hangs the hole prozess



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefan Huchler wrote:
> sorry thats the root: svn://blackiwid.dyndns.org/var/svn/repos

So Jamelia - Superstar (Demo).mp3 causes the process to hang? It works
OK on my system.

ethan@sundance:~/repos/trunk/gui/songs$ python
Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
[GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>> pygame.mixer.init()
>>> pygame.mixer.music.load("Jamelia - Superstar (Demo)/Jamelia -
Superstar (Demo).mp3")
>>> pygame.mixer.music.play()

Repeated calls to pygame.mixer.music.play() restart the song.

Furthermore, I don't see any horrible breakage in the mp3 itself:

ethan@sundance:~/repos/trunk/gui$ mp3val songs/Jamelia\ -\ Superstar\
\(Demo\)/Jamelia\ -\ Superstar\ \(Demo\).mp3
Analyzing file "Jamelia - Superstar (Demo).mp3"...
INFO: "/home/ethan/repos/trunk/gui/songs/Jamelia - Superstar
(Demo)/Jamelia - Superstar (Demo).mp3": 2812 MPEG frames (MPEG 2 Layer
III), +ID3v1+ID3v2, CBR, CRC
Done!
ethan@sundance:~/repos/trunk/gui$ mp3check -a songs/Jamelia\ -\
Superstar\ \(Demo\)/Jamelia\ -\ Superstar\ \(Demo\).mp3
songs/Jamelia - Superstar (Demo)/Jamelia - Superstar (Demo).mp3:
anomaly: audio mpeg version 2.0 stream
anomaly: sampling rate 22.1kHz
anomaly: bitrate  32kbit/s
anomaly: mode single chann

What OS are you using? You mentioned this happens on Gentoo with
Gentoo's version of pygame. What sound hardware are you using? Does
anyone on the list know what library decompresses MP3s on Pygame? I
think it's smpeg, so Stefan, could you tell me what version of smpeg
you have installed and see if a newer version is available? (I have
libsmpeg0 from Debian unstable.)

Ethan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHK2wKhRlgoLPrRPwRAgfqAKDG06wd6x5Wd0cb7ZCwDCwKN0HLlwCeKfRg
fzUtVzWs7O5UrvDooIKIlNA=
=fSBv
-----END PGP SIGNATURE-----