Sound Playing Too Fast


dodgyville

Member
Joined
Oct 15, 2005
Messages
176
Location
Melbourne
Website
Visit site
Hello,

I'm using beta2 of the python/pygame package, which is based on SDL, and the sounds seem to play double speed (and therefore high-pitched). Has anyone encountered a similar problem, and do they have a solution?

Thanks,
Luke
 
spooky2x posted on Feb 9 2007 at 11:05 PM said:
i testing pygame-beta2 right now and i have same problem.
fw 2.1.1 and no solution for me yet.

Too easy! You have to set the pygame mixer to a sample rate appropriate for your sound files.

I found that putting the follow code near my init stuff fixed the problem.
pygame.mixer.pre_init(44100, -16, 2, 1024)

Good luck,
Luke
 
Last edited by a moderator:
Back
Top