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

Re: [pygame] duration of song



my_sound = pygame.mixer.sound([filename])
number_of_seconds_long = my_sound.get_length()

On 7/13/07, Jason Coggins < jcoggins828@xxxxxxxxxxx> wrote:
Actually I was thinking of using the length of the music played as a
variable in the program.

Jason

----- Original Message -----
From: "dbcad7" <dbcad7@xxxxxxxxxx>
To: < pygame-users@xxxxxxxx>
Sent: Monday, July 09, 2007 10:55 PM
Subject: RE: [pygame] duration of song


>
> I would thing that WinAmp, or Xmms, or even media player would show you
> that information when you play it..  but I suppose there are more
> complicated ways to find out.  :)
>
>
>
>
> --- On Sun 07/08, Jason Coggins < jcoggins828@xxxxxxxxxxx > wrote:
> From: Jason Coggins [mailto: jcoggins828@xxxxxxxxxxx]
> To: pygame-users@xxxxxxxx
> Date: Sun, 8 Jul 2007 17:51:07 -0400
> Subject: [pygame] duration of song
>
> Does anyone know of a method to determine how long (in time) a music file
> is?Jason
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>