duminică, 12 martie 2017

How play ogg file with pygame python module.

Let's see how play file.ogg file with pygame python module.
import pygame
import time
pygame.init()
pygame.mixer.music.load('file.ogg')
pygame.mixer.music.play()
time.sleep(1.5)