[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] No pygame.mixer.Sound.get_current()?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] No pygame.mixer.Sound.get_current()?
- From: "Forrest Voight" <voights@xxxxxxxxx>
- Date: Wed, 30 Jul 2008 20:01:53 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 30 Jul 2008 20:01:57 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=WFPOpvuDePgeixr1Dz+092Duti1wuSAQwdmxC7LHvZQ=; b=DwkpJoZN+oCVqg6S7yGX4Eju0npSgoEoINukCv9Z72ZGlgbtpVWcirXLMjzo4KTTUG SmBx1ZRTfccgS6e/f6khfjkQdQz5OX3Hu9fwkQ1AJEDprTqeXFqAyklRvoG9t4pMP0jb CpRfpjalsuQlNUYi2bDA51EwVQJm/mkz5kkas=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lZaV0d/KJ0xIGnx8NZ4kgpT2pvww97iSL4XkCBUugcx+FLg21qI+s7++Jdq6q8b36a paac0mp/P3Xo7qEmH9t6aLChmiX7wqz1Yqr9ESWFqWActM5o/frg4/X0hx3yckN1pC4b PyRLhXz/TTQNxti+e0STgyNOmwNTfOr+F/FfY=
- In-reply-to: <1bb620340807291951l4ed62ee4je5f6b6524bfdd845@xxxxxxxxxxxxxx>
- References: <1bb620340807291951l4ed62ee4je5f6b6524bfdd845@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
There is no function that does this, but if there was it would be in
pygame.mixer.Channel.
Sounds are immutable. They each just the data of the sound.
Also, pygame.mixer.music has functions for getting the position and seeking.
On Tue, Jul 29, 2008 at 10:51 PM, Tyler Distad <tyler.distad@xxxxxxxxx> wrote:
> There is no function in pygame.mixer.Sound to return the current
> position in the track. A get_length() function is available, so I
> would assume that a get_current() position would be a simple addition.
>
> Of course, I could be wrong. I looked at the code to see about adding
> it, but in a few minutes of looking, was unable to easily find a
> position marker.
>
> Tyler Distad
>