On 10/31/07, Stefan Huchler <[EMAIL PROTECTED]> wrote:
> >>> import pygame
> >>> pygame.mixer.init()
> >>> pygame.mixer.load('test.mp3')
> >>> pygame.mixer.music.play()
> >>> pygame.mixer.music.play()
>
pygame.mixer.load() is not a function. You want: "Sound =
pygame.mixer.Sound(filename)"
You can't load .mp3 files with pygame.mixer. Only .ogg or .wav, or you can
use pygame.mixer.music.
Try this:
import pygame
from pygame.locals import *
pygame.init()
TestSound = pygame.mixer.Sound("test.mp3")
TestSound.play()
Ian