Audio: Properly close audio device on emulator destruction (#637)
* Audio: Properly close audio device on emulator destruction * Undo oopsie
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user