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

[pygame] Choppy sound playback



Help! I'm getting very choppy sound playback on my code. Here's a quick example:

#!/usr/bin/python

import pygame

pygame.init()
pygame.mixer.init (44100,-16,True,4096)
foo=pygame.mixer.Sound("sound.ogg")
foo.set_volume(1)
foo.play()


Sound plays, but like a very dirty record, with lots of digi-noise. Sound on other programs works fine; any obvious issues that anyone can think of?

-- Chris
--
Science is open source religion