Android: Empty audio buffers when returning from activity
This commit is contained in:
1 parent
f68ad7d0c3
commit
8cb89636eb
2 files changed
+5
-2
No files matched your search
@@ -473,9 +473,9 @@ void AndroidHostInterface::SurfaceChanged(ANativeWindow* surface, int format, in
|
||||
m_display->ChangeRenderWindow(wi);
|
||||
|
||||
if (surface && System::GetState() == System::State::Paused)
|
||||
System::SetState(System::State::Running);
|
||||
PauseSystem(false);
|
||||
else if (!surface && System::IsRunning())
|
||||
System::SetState(System::State::Paused);
|
||||
PauseSystem(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user