[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Playing mp3 files



Gerhard Häring wrote:
> Is there a reason why
>     mixer.music.load("White Bird.mp3"
> does work, while
>     s = mixer.Sound("White Bird.mp3"
> doesn't and fails with pygame.error: Unrecognized file type (not VOC)

yes, it's unfortanately the way the SDL_mixer library works.
several music formats can only be played on the streaming music object. 
actually, it looked like the latest release of SDL_mixer did have 
support for loading these into normal Sound objects, but i haven't 
looked into it yet. (if it did work, i believe pygame would already 
automatically support it)

the Sound objects can only be loaded from uncompressed WAV or VOC files.



____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org