commit | 99448608f375a7191c068c3bfd296f204b58a219 | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Mon Apr 02 12:16:49 2012 -0700 |
committer | Marco Nelissen <marcone@google.com> | Wed Apr 04 14:26:45 2012 -0700 |
tree | 2233a958570ce34e7203560677dcea2fe0e726e3 | |
parent | f15cb4472aaca54c13f8250e4c7872470c4bed83 [diff] |
Allow AudioTrack to start at nonzero position When creating a new AudioTrack (not inheriting one from a previous play), the AudioSink should take the AudioTrack's position as the initial starting point for mBytesWritten, since otherwise NuPlayer's calculations will be off. Normally this position will be 0, but if the test code for 32 bit wraparound in AudioFlinger.cpp is enabled, it might be (much) larger. Change-Id: I1e4f906d529861c3dea996de8afc6dbd491589af