my_sound = pygame.mixer.sound([filename]) number_of_seconds_long = my_sound.get_length()
On 7/13/07, Jason Coggins <[EMAIL PROTECTED]> wrote:
Actually I was thinking of using the length of the music played as a variable in the program. Jason ----- Original Message ----- From: "dbcad7" <[EMAIL PROTECTED]> To: <pygame-users@seul.org> 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 < [EMAIL PROTECTED] > wrote: > From: Jason Coggins [mailto: [EMAIL PROTECTED] > To: pygame-users@seul.org > 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! > >