Chris Smith wrote:
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?
There was a thread on this a couple of weeks ago called "sound crackling
and fmod." Do you happen to be on Linux?
Without knowing your OS it's hard to help :)
-Luke