Cap queued audio at 40 ms on Steam Link

This commit is contained in:
Cameron Gutman
2019-05-11 19:09:59 -07:00
parent c2b12868bb
commit b3ee7a635f
7 changed files with 58 additions and 15 deletions

View File

@@ -303,6 +303,11 @@ bool SoundIoAudioRenderer::submitAudio(int bytesWritten)
return false;
}
if (bytesWritten == 0) {
// Nothing to do
return true;
}
// Flush events to update with new device arrivals
soundio_flush_events(m_SoundIo);