mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Handle iOS audio session interruptions by reinitializing audio
This commit is contained in:
1 parent
8e1ab3f6ff
commit
d8b3f4af33
3 files changed
+97
-3
No files matched your search
+8
-2
@@ -134,6 +134,13 @@ void Audio_Init() {
|
||||
}
|
||||
}
|
||||
|
||||
void Audio_Shutdown() {
|
||||
if (audioInitialized) {
|
||||
audioInitialized = false;
|
||||
host->ShutdownSound();
|
||||
}
|
||||
}
|
||||
|
||||
bool IsOnSeparateCPUThread() {
|
||||
if (cpuThread != nullptr) {
|
||||
return cpuThreadID == std::this_thread::get_id();
|
||||
@@ -290,8 +297,7 @@ void CPU_Shutdown() {
|
||||
__KernelShutdown();
|
||||
HLEShutdown();
|
||||
if (coreParameter.enableSound) {
|
||||
host->ShutdownSound();
|
||||
audioInitialized = false; // deleted in ShutdownSound
|
||||
Audio_Shutdown();
|
||||
}
|
||||
pspFileSystem.Shutdown();
|
||||
mipsr4k.Shutdown();
|
||||
|
||||
Reference in new issue
Block a user