Thanks for the suggestions. I am just learning python and I will take them
to heart.
Jason
- Original Message -
From: "Marius Gedminas" <[EMAIL PROTECTED]>
To:
Sent: Saturday, July 14, 2007 5:45 PM
Subject: Re: [pygame] What is wrong with this
On Sat, Jul 14, 2007 at 02:31:20PM -0400, Jason Coggins wrote:
> I am trying to create a very simple program that makes a list of the
> music files in a folder, sorts the files into alphabetical order and
> then plays each file in the folder. The program below plays the first
> file in the folder
I found the problem. It had nothing to do with the part of the program that
was playing the music (which I reproduced with the original email) but another
part of the program that was starting after the music finished and was holding
up the entire program.
Thanks for taking a look though.
Jas
I am trying to create a very simple program that makes a list of the music
files in a folder, sorts the files into alphabetical order and then plays each
file in the folder. The program below plays the first file in the folder and
then freezes without playing any of the remaining songs.
--
"Jason Coggins" <[EMAIL PROTECTED]> wrote:
> I was wanting to use .mp3 files.
Perhaps this suits your needs:
http://py.vaults.ca/apyllo.py?i=6226313
>>> import mp3
>>> mp3.mp3info("you-spin-me-round.mp3")
{'STEREO': False, 'FREQUENCY': 44100, 'COPYRIGHT': 0L, 'MM': 3, 'LAYER':
2, 'SS' : 2, 'VERSI
I was wanting to use .mp3 files.
Jason
- Original Message -
From: "Dave LeCompte (really)" <[EMAIL PROTECTED]>
To:
Sent: Saturday, July 14, 2007 3:23 AM
Subject: Re: [pygame] duration of song
"Ian Mallett" <[EMAIL PROTECTED]> wrote:
On 7/13/07, Jason Coggins <[EMAIL PROTECTED]> w
Upon further experimentation I have found that this method does only work for
.ogg and .wav files but not .mp3 files and such.
I can tell the size of the file in bytes simply by viewing details of the file
in a window but I was wanting to use different sound files (including some the
user could
PyMedia claims to support this, though it mentions you may need to
"play" the file for a second or two to initialize decoding and get the
full length.
--Noah
Dave LeCompte (really) wrote:
>> "Ian Mallett" <[EMAIL PROTECTED]> wrote:
>> On 7/14/07, Dave LeCompte (really) <[EMAIL PROTECTED]> wrote:
> "Ian Mallett" <[EMAIL PROTECTED]> wrote:
> On 7/14/07, Dave LeCompte (really) <[EMAIL PROTECTED]> wrote:
>> That works for OGG and WAV sounds, but does not work for other music
>> files, like MP3, MOD, and MIDI, right?
>
> Oh, opps. You're probably right. I'm curious now, why don't you know th
On 7/14/07, Dave LeCompte (really) <[EMAIL PROTECTED]> wrote:
"Ian Mallett" <[EMAIL PROTECTED]> wrote:
> 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.
> my_sound = pygame.mixer.sound([
"Ian Mallett" <[EMAIL PROTECTED]> wrote:
> 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.
> my_sound = pygame.mixer.sound([filename])
> number_of_seconds_long = my_sound.get_length()
That
11 matches
Mail list logo