commit | ab7f4182d4d509733107622216db4dd128340185 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Fri Sep 19 11:46:44 2014 -0700 |
committer | Marco Nelissen <marcone@google.com> | Fri Sep 19 18:57:09 2014 +0000 |
tree | 19588c176eff8186695d09ab411721c1431def1e | |
parent | b0ed4e3e482cbdc2fa6c7853526597f4ae3f0972 [diff] |
Fix ringbuffer handling Explicitly keep track of the number of samples in the ring buffer, rather than inferring it from the difference between the read and write pointer, since the latter cannot distinguish between a completely full and a completely empty buffer. Bug: 17582331 Change-Id: I24d16ce96710209b7457ffad7c4c60201451980f