Audio: Properly close audio device on emulator destruction (#637)

* Audio: Properly close audio device on emulator destruction

* Undo oopsie
This commit is contained in:
wheremyfoodat
2024-11-19 23:41:52 +02:00
committed by GitHub
parent 452510b932
commit 889c2453de
3 changed files with 21 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ Emulator::Emulator()
Emulator::~Emulator() {
config.save();
lua.close();
audioDevice.close();
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
discordRpc.stop();
@@ -442,4 +443,4 @@ void Emulator::loadRenderdoc() {
std::string capturePath = (std::filesystem::current_path() / "RenderdocCaptures").generic_string();
Renderdoc::loadRenderdoc();
Renderdoc::setOutputDir(capturePath, "");
}
}