twn_audio: rework interface
This commit is contained in:
@ -106,10 +106,9 @@ Scene *ingame_scene(State *state) {
|
||||
|
||||
new_scene->cam = (Camera){ .pos = { 32, 0, 1 }, .up = { 0, 1, 0 }, .fov = (float)M_PI_2 };
|
||||
|
||||
audio_play_ex("music/mod65.xm", "soundtrack", (PlayAudioArgs){
|
||||
.repeat = true,
|
||||
.volume = 1.0f
|
||||
});
|
||||
m_audio(m_set("music/mod65.xm"),
|
||||
m_opt(channel, "soundtrack"),
|
||||
m_opt(repeat, true));
|
||||
|
||||
input_set_mouse_captured(&ctx.input, true);
|
||||
|
||||
|
Reference in New Issue
Block a user