[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Compiling music into a game?
On 1/13/06, David Mikesell <dave_mikesell@xxxxxxxxxxx> wrote:
OK, I *finally* got around to trying this and am having problems on
Windows XP. I open my sound file, write it to a temporary file created
with tempfile.NamedTemporaryFile() and that all seems to work.
However, when I try to create a
pygame.mixer.Sound with the temp file, I
get a NameError. I printed the tempfile name and printed debug
statements after I wrote to it so I'm assuming it got created and
written to successfully.
Any ideas?
Sorry, no ideas as such, but I just wanted to report that a similar thing happened to me with tempfiles on Windows XP (using wxPython, not Pygame). I got frustrated and decided to write a file with a very unlikely name (__junk__.htm in my case) in the current directory and handling the deleting at the end myself. So, I'm interested in seeing if/how it works :-)