update to raylib 4.2
This commit is contained in:
parent
3a6deb2c04
commit
3e011b329a
19 changed files with 78 additions and 49 deletions
19
tests/xtest_music.py
Normal file
19
tests/xtest_music.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
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()
|
Reference in a new issue