This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
raylib-python-cffi/tests/test_music.py
2021-11-09 15:10:27 +00:00

19 lines
447 B
Python

from pyray import *
init_window(800, 450, "Hello")
init_audio_device()
music = load_music_stream("examples/audio/resources/country.mp3")
music.looping = True
play_music_stream(music);
while not window_should_close():
update_music_stream(music);
begin_drawing()
clear_background(WHITE)
draw_text("music "+str(music.looping), 190, 200, 20, VIOLET)
end_drawing()
unload_music_stream(music)
close_audio_device()
close_window()