.ogg playback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user