[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Problem with get_length and mp3
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Problem with get_length and mp3
- From: "Stefan Huchler" <s.huchler@xxxxxxxxx>
- Date: Fri, 20 Jun 2008 14:10:02 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 20 Jun 2008 08:10:08 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=XwvsfCkKSk40mxDncDEzyo7r28TCZfQk15RRNUZCU4g=; b=Qoy/p+oLapuLcxDpPXBHjODKDLjIi1wYozGdHi1vPGUAARbsskuR0nvwSgE71yMtUF OTML9D8fzbMva6zYZ0TZvgfz7RUFBcVI788skwEfEP5e5CVkoPdz0hxYfjx4SvPS40ny NqDrp+ivKwQsQouYfucKh1FlccYxh00J8ZcNg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=JvQbREDMhgFl5FYPbIkvB0WdYnbNdg8tdus6RP+dQ5jAZXvRpUw9F7GbvCMb7Kg9gO /LqDRuLWBKmeZSAEmsEiPGkdQaJj77TWCDijq7Y+pBDycI8OvvFA8nkN2KbPybLKEmkf OJHTIye6DsQrQjzZ/kryaflsp0Tr3Gd6clDLQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
i have following problem with pygame:
>>> import pygame
>>> pygame.mixer.init()
>>> pygame.mixer.Sound('test.mp3')
<pygame.mixer.Sound object at 0x7f16a8616350>
>>> x = pygame.mixer.Sound('test.mp3')
>>> x.get_length()
9.0702946181409061e-05
the mp3 is 5min 18 sec long (xmms)
pygame v. 1.8
pygame < 1.8 dont support mp3 with pygame.mixer.Sound module and
pygame.mixer.music has no get_lenth method so i have to use > 1.8
i postet the problem on your irc channel one guy (_raz_) testet it
with latest svn trunk, he confirmed that this bug is also with this
version.
greetings
Stefan Huchler
www.canta-game.org