.ogg playback

This commit is contained in:
veclavtalica
2024-07-08 09:46:12 +03:00
parent adcf638e2a
commit 8a8f62dc25
12 changed files with 363 additions and 9 deletions

View File

@@ -2,6 +2,8 @@
#include "title.h"
#include "scene.h"
#include "../../audio.h"
static void ingame_tick(struct state *state) {
struct scene_ingame *scn = (struct scene_ingame *)state->scene;
@@ -28,5 +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){
.volume = 0.8f,
.panning = -0.5f
});
return (struct scene *)new_scene;
}