diff --git a/src/modules/audio/openal/Audio.cpp b/src/modules/audio/openal/Audio.cpp index 72338418b..1d9e7c4dc 100644 --- a/src/modules/audio/openal/Audio.cpp +++ b/src/modules/audio/openal/Audio.cpp @@ -131,6 +131,8 @@ Audio::Audio() Audio::~Audio() { + stop(); + poolThread->setFinish(); poolThread->wait(); diff --git a/src/scripts/boot.lua b/src/scripts/boot.lua index ff4e8af42..9bc0ab925 100644 --- a/src/scripts/boot.lua +++ b/src/scripts/boot.lua @@ -496,9 +496,6 @@ function love.run() for e,a,b,c,d in love.event.poll() do if e == "quit" then if not love.quit or not love.quit() then - if love.audio then - love.audio.stop() - end return end end diff --git a/src/scripts/boot.lua.h b/src/scripts/boot.lua.h index ec8a66b34..76445cc80 100644 --- a/src/scripts/boot.lua.h +++ b/src/scripts/boot.lua.h @@ -892,11 +892,6 @@ const unsigned char boot_lua[] = 0x09, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x71, 0x75, 0x69, 0x74, 0x20, 0x6f, 0x72, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x71, 0x75, 0x69, 0x74, 0x28, 0x29, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x69, 0x66, 0x20, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x61, 0x75, 0x64, 0x69, - 0x6f, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, - 0x73, 0x74, 0x6f, 0x70, 0x28, 0x29, 0x0a, - 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x6e, 0x64, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x09, 0x65, 0x6e, 0x64, 0x0a, 0x09, 0x09, 0x09, 0x09, 0x65, 0x6e, 0x64, 0x0a,