mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 05:35:46 -04:00
Android: Empty audio buffers when returning from activity
This commit is contained in:
@ -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