implement repeat in libxm

This commit is contained in:
veclavtalica
2024-07-08 18:00:38 +03:00
parent c539473021
commit c07aa3c9a8
2 changed files with 34 additions and 16 deletions

View File

@@ -30,9 +30,10 @@ struct scene *ingame_scene(struct state *state) {
new_scene->world = world_create();
new_scene->player = player_create(new_scene->world);
play_audio_ex("music/test.ogg", "soundtrack", (t_play_audio_args){
play_audio_ex("music/repeat-test.xm", "soundtrack", (t_play_audio_args){
.volume = 0.8f,
.panning = -0.5f
.panning = -0.5f,
.repeat = true,
});
return (struct scene *)new_scene;