Re: Crackly sound in pygame



Before calling pygame.init(), you can call pygame.mixer.pre_init.
Make sure the sample rate and sample size matches your audio file.
But most likely the issue is that the default audio buffer size of
1024 doesn't cut it for some sound cards; try increasing to the next
power of two.

Ex.
pygame.mixer.pre_init(44100, -16, 2, 2048)


On Nov 29, 2007 7:33 PM, Woot4Moo@xxxxxxxxx <Woot4Moo@xxxxxxxxx> wrote:
Hey guys I am running Windows XP and am having an issue with a game
that my team has created. Whenever an audio file is played it creates
a very distorted, crackly sound. Any ideas what could be the issue?

Thanks
--
http://mail.python.org/mailman/listinfo/python-list




--
-David
.



Relevant Pages

  • Re: Home recording quickie
    ... the higher the sample rate the bigger the audio file and the harder ... hardware which directly records into this format yet (someone enlighten me ... Once again though you up the audio file size and cpu load ...
    (uk.music.guitar)
  • How to get file info/properties?
    ... How to get file information/properties stored in audio file (format .AMR, used in speech coding) when I have no corresponding program that can open this file? ... I need get basic info: sample rate, bitrate, audio sample size, channels. ...
    (microsoft.public.windowsxp.general)
  • Re: How to read the audio file data
    ... What is the API which helps to read the data of an audio file. ... I want to read BitRate,Audio Sample Size,Audio Sample rate and Channel ... -- Matt Mahoney ...
    (comp.compression)