| commit | 74b8adfbec4b34da7904de544f1e549e21a90426 | [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 | 100e0a0a62d362be52e05e8d3988f20f4e5ae7bc | |
| parent | d272d6bf640dcaebeee7405469f9cacfa4bc1b72 [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