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

Re: [pygame] No pygame.mixer.Sound.get_current()?



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
>