Skip to content

Commit

Permalink
Change order of lines to make audio play
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Campos Nunes <[email protected]>
  • Loading branch information
rafaelcn committed Apr 14, 2023
1 parent a1fe5aa commit 58fc06d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tux/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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](){
Expand All @@ -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;
}

0 comments on commit 58fc06d

Please sign in to comment.