minor audio fixes

This commit is contained in:
h4570
2022-08-11 23:46:02 +02:00
parent 472ab5c2ad
commit 00216da1cd
5 changed files with 9 additions and 7 deletions
+7
View File
@@ -10,6 +10,9 @@
#include "states/game/game_state.hpp"
#include "debug/debug.hpp"
#include "file/file_utils.hpp"
using Tyra::FileUtils;
namespace Demo {
@@ -27,6 +30,10 @@ void GameState::onStart() {
TYRA_LOG("Game. RAM: ", engine->info.getAvailableRAM(), "MB");
engine->audio.song.stop();
engine->audio.song.load(FileUtils::fromCwd("game/ambiance.wav"));
engine->audio.song.inLoop = true;
engine->audio.song.setVolume(100);
engine->audio.song.play();
auto* repository = &engine->renderer.core.texture.repository;
player = new Player(engine);