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

Re: [pygame] write sound to file for fast loading?





On Tue, Feb 2, 2010 at 9:27 AM, B W <stabbingfinger@xxxxxxxxx> wrote:
These are .ogg loading from disk using pygame.mixer.Sound('filename.ogg'), the largest of which is 7 MB.

I can't believe I overlooked pygame.mixer.music. Pardon me while I flog myself.

This does exactly what I want. Thanks, Brian and Olof, for suggesting it! Works like a charm.

Gumm

Of course the big downside to mixer.music, is that you can only have one file loaded at once. This is bad if you want to mix :) Then you have to use sounds, and suffer the loading issues.