Android: Empty audio buffers when returning from activity
This commit is contained in:
parent
f68ad7d0c3
commit
8cb89636eb
2 changed files with 5 additions and 2 deletions
|
|
@ -164,7 +164,10 @@ void CommonHostInterface::PauseSystem(bool paused)
|
|||
return;
|
||||
|
||||
System::SetState(paused ? System::State::Paused : System::State::Running);
|
||||
if (!paused)
|
||||
m_audio_stream->EmptyBuffers();
|
||||
m_audio_stream->PauseOutput(paused);
|
||||
|
||||
OnSystemPaused(paused);
|
||||
UpdateSpeedLimiterState();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue