From 09b96c72305ade6fab7a78457463572b2e71fc74 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:42:10 +0200 Subject: [PATCH] Stop audio device on emulator close --- src/emulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}