commit | 89b629b398e87095cf262692f4e476d605fe87ed | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Mon Dec 17 11:44:20 2012 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Mon Dec 17 17:26:44 2012 -0800 |
tree | c31e756185bc90379f70710ffe9b16ae34b2d470 | |
parent | 66c8dd24358a08a59944e9fc13d686e0ff91eee9 [diff] |
Fix bug with discarded AudioRecord::read count Formerly, if an AudioRecord::read() got a timeout on obtainBuffer() after already successfully transferring some data, then it returned zero. This had the effect of discarding a partial transfer, which resulted in a gap in the audio data delivered to the app. Now if a timeout occurs after a partial transfer, it returns that partial transfer count so that no data is lost. Change-Id: I0d9c2f4e495a400b56ef916a06613ba26537ca97