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

Re: [pygame] Re: Static on looping music



i use this simple function to overcome that obstacle:

def loop_music():
# This is to bypass a bug in the looping of OGG Vorbis files causing them to
# sound very degraded.
# TODO: Check if this bug still exists in recent SDL/PyGame versions.
    if not pygame.mixer.music.get_busy():
        pygame.mixer.music.play()

On Tue, Mar 24, 2009 at 8:41 PM, Fawkes <fawkesgarde@xxxxxxxxx> wrote:
Hello again.

Thanks for the prompt replies.

Switching to an mp3 format seems to have fixed the problem for the
songs in question.