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

Re: [pygame] Crackle and static with pygame.mixer.music



try:

pygame.mixer.pre_init(44100, -16, 2, 4096)

before you init
       

On Tue, Jul 29, 2008 at 4:12 PM, Tyler Distad <tyler.distad@xxxxxxxxx> wrote:
I am attempting to play .ogg files with pygame, but my playback is
static-filled. Sample script follows:
-------------------
import pygame.mixer
pygame.mixer.init()
pygame.mixer.music.load('sample.ogg')
pygame.mixer.music.play()

import time
while 1:
 time.sleep(1)
-------------------

I have tested this with the Ubuntu 8.04 distribution of pygame 1.7.1,
version 1.8.0 from the home page, and the latest 1.8.1 release on the
CVS. All versions produce identical results.

All tested .ogg files work perfectly in other media players.