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

Re: [pygame] Playing MP3 problem (background noise)



On Dec 9, 2007, at 8:52 AM, Nelson wrote:

while 1:
      pass

This may have absolutely nothing to do with it, but this code will completely consume a cpu while doing nothing, which may adversely effect other operations that need cpu, such as mp3 decoding. You might try replacing it with:

while 1:
    time.sleep(1)

or a call to pygame.event.wait() or something else that does not busy- wait.

-Casey