From 58fc06d68e8524656f42fe1ce1c3a0326436dc3d Mon Sep 17 00:00:00 2001 From: Rafael Campos Nunes Date: Fri, 14 Apr 2023 14:49:03 -0300 Subject: [PATCH] Change order of lines to make audio play Signed-off-by: Rafael Campos Nunes --- tux/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tux/src/main.cpp b/tux/src/main.cpp index 3e7e791..ef37ffa 100644 --- a/tux/src/main.cpp +++ b/tux/src/main.cpp @@ -10,7 +10,7 @@ int main() { Game game("Rafael Campos Nunes - 19/0098295", 1024, 600); - Track bgm("assets/audio/stateStage.ogg"); + Track bgm("assets/audio/stageState.ogg"); Track effect("assets/audio/boom.wav"); auto render = [&game](){ @@ -20,10 +20,10 @@ int main() { game.bind(FunctionType::Render, render); - game.loop(); - - effect.play(1); + effect.play(-1); bgm.play(1); // not working over here (linux) + game.loop(); + return 0; } \ No newline at end of file