[Chromecast] Wait before starting AudioTrack playback until data is available
This removes the call to start() at the end of init(), and instead waits until data is fed in. At that time, it writes as much data as the AudioTrack instance takes, then calls start(), then feeds in any additional data not taken on the first call. Bug: internal b/62923451 Test: run on IMX7, observe logs for playback of TTS and Media streams, notice no underruns reported Change-Id: I89b272655176d22e0cb17e896fe6b9c1daa3e717 Reviewed-on: https://chromium-review.googlesource.com/545262Reviewed-by:Luke Halliwell <halliwell@chromium.org> Commit-Queue: Chris Kuiper <ckuiper@chromium.org> Cr-Commit-Position: refs/heads/master@{#481915}
Showing
Please register or sign in to comment