import pygame
pygame.mixer.init()
pygame.mixer.music.load(\"only one.mp3\")
pygame.mixer.music.play(0)
while pygame.mixer.music.get_busy():
pygame.time.Clock().t
Works well on Ubuntu 10.04 and Pygame 1.9.1.
Some things you can try:
pygame.init()
pygame.display.set_mode((200,100))
pygame.event.get()
Example:
import pygame
pygame.init()
pygame.display.set_mode((200,100))
pygame.mixer.music.load("only one.mp3")
pygame.mixer.music.play(0)
clock = pygame.time.Clock()
clock.tick(10)
while pygame.mixer.music.get_busy():
pygame.event.poll()
clock.tick(10)