[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Sound.get_length() problem
- To: pygame-users@seul.org
- Subject: [pygame] Sound.get_length() problem
- From: Arthur Elsenaar <arthur@iaaa.nl>
- Date: Mon, 13 Sep 2004 02:22:40 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sun, 12 Sep 2004 20:23:20 -0400
- In-reply-to: <411C5765.9040904@shinners.org>
- References: <1092323812.25104.74.camel@localhost.localdomain> <411C5765.9040904@shinners.org>
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
Hi,
I have a problem with Sound.get_length() returning an 'AttributeError:
get_length'.
Here's what I have:
import pygame.mixer
pygame.mixer.init(44100)
pygame.mixer.set_num_channels(4)
sound = pygame.mixer.Sound('cache/1.wav')
print sound.get_length() # <=== error occurs here
Channel = sound.play()
Running pygame 1.6 on OS X.
Any ideas?
Thanks, Arthur.