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

Re: [pygame] Compiling music into a game?



On Tue, 2005-02-08 at 09:35 -0500, shandy@xxxxxxxxx wrote:
> I assume that the content providers are concerned with you distributing
> them as .ogg files that can just be simply copied by the end user.
> 
> The easiest way to distribute them then would be all together in a zip
> file and DON'T unzip them on the end user's machine, just use the python
> zipfile module.

Pygame can't do that; mixer.music can only load from disk, not a
file-like. You'd have to extract the file, play it, and remove it when
you're done.
-- 
Joe Wreschnig <piman@xxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part