techoverload/audio.py

8 lines
202 B
Python
Raw Permalink Normal View History

2022-07-16 11:13:36 +00:00
import pygame
pygame.mixer.init()
pygame.mixer.music.load("morninggarden.mp3")
pygame.mixer.music.set_volume(0.5)
pygame.mixer.music.play()
while pygame.mixer.music.get_busy() == True:
continue