diff --git a/src/emulator.cpp b/src/emulator.cpp index 9b8564254..214c0cb9d 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -50,6 +50,7 @@ Emulator::Emulator() Emulator::~Emulator() { config.save(); lua.close(); + audioDevice.stop(); #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, ""); -} \ No newline at end of file +}