commit | c2813e568aa476e03d159529c0af28c99536db8d | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Oct 16 17:54:34 2014 -0700 |
committer | Rachad Alao <rachad@google.com> | Fri Oct 17 20:32:54 2014 +0000 |
tree | 95bf50e96fd0bd69d892b5bf629220b9fc874f94 | |
parent | 9d2189ffcf1142b2948ce3065c32521ed7d966c4 [diff] |
Fix AudioTrack retrograde getPosition when restoring tracks mReleased represents the number of frames written to the track, but was cleared on start() causing a mismatch if the client wrote to the track before starting. Moved the clearing to entering the STATE_STOPPED or STATE_FLUSHED state. Bug: 18017947 Bug: 18022276 Change-Id: I3788c98c4c3c4d9cc004378432797b3f3138e22e