Go to advanced search

by petercaunt
Wed Jan 30, 2013 8:05 am
Forum: Python
Topic: pygame sound
Replies: 1
Views: 5960

Re: pygame sound

Duh!! I found http://www.pygame.org/docs/ This gives all sort of information/tutorials about pygame. As I understand it pygame.init initialises everything including the mixer. What is needed is to do a - pygame.mixer.pre_init(frequency=44100, size=-16, channels=2, buffersize=4096) - before the pygam...
by petercaunt
Tue Jan 29, 2013 4:16 pm
Forum: Python
Topic: pygame sound
Replies: 1
Views: 5960

pygame sound

I am new to python and have been trying to get it to play an mp3. I tried the code below import pygame, sys, time from pygame.locals import * pygame.init() DISPLAYSURF = pygame.display.set_mode((400,300)) pygame.display.set_caption('My MP3') pygame.mixer.init() pygame.mixer.music.load('Songbird.mp3'...

Go to advanced search