Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to play music on pygame

import pygame

pygame.init()
mixer.music.load("music/main.wav")#music file 
mixer.music.play(-1)
 
PREVIOUS NEXT
Tagged: #play #music #pygame
ADD COMMENT
Topic
Name
7+6 =