commit | 67295b543c16ed7c77b67f859d598fe7b4571660 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Mon Jun 11 14:52:53 2012 -0700 |
committer | Marco Nelissen <marcone@google.com> | Mon Jun 11 15:10:48 2012 -0700 |
tree | ce4810e22cedaec06f3d7ada9f1b5f5e182df506 | |
parent | c15d6657a17d7cef91f800f40d11760e2e7340af [diff] |
Fix gapless playback On some devices the actual framecount per buffer of an AudioTrack will be different than what was requested, which prevented the track from being reused. Now we create a new AudioTrack with the requested parameters, and then compare it to the track we already have. If they match, we throw away the new track and reuse the existing one. b/6644559 Change-Id: Id3e8c4460436f52e59b98ecaeb01c94f02877c1d