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

Re: [pygame] sound crackling and fmod



Andrew Pape wrote:
> 1) why am I getting the crackling when running the demos?, and

From http://www.pygame.org/docs/ref/mixer.html:

NOTE: there is currently a bug on some windows machines which makes
sound play back 'scratchy'. There is not enough cpu in the sound
thread to feed the buffer to the sound api. To get around this you can
increase the buffer size. However this means that there is more of a
delay between the time you ask to play the sound and when it gets
played. Try calling this before the pygame.init or pygame.mixer.init
calls. pygame.mixer.pre_init(44100,-16,2, 1024 * 3)


It doesn't say that this might happen on Ubuntu (or indeed any Linux
distribution), but this would be the first thing I would try.

Ethan

Attachment: signature.asc
Description: OpenPGP digital signature