summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-03-09 10:34:37 -0800
committerMarco Nelissen <marcone@google.com>2012-03-09 12:27:06 -0800
commit1eb0e4a26059f2fe9bd353f04d1b646edbf38473 (patch)
treeddfc7b1d296d472f797c40a22f6408b765389c6c /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentaa6816a8a0e575059f1e417ba2bbc3c86cc879a3 (diff)
Improve AudioPlayer position reporting
The latency was not taken into account when updating mPositionTimeRealUs inside of the fillBuffer hook, contrary to what the getRealTimeUsLocked() method does. This caused the realTimeOffset calculated in the getMediaTimeUs to always be negative, causing the reported position to always be equal to mPositionTimeMediaUs, which is updated infrequently. With this change, the reported position is updated more frequently, allowing apps to perform smoother UI updates. Change-Id: I61e05c1a8b53d46b9091afb0d18a6289d13a7a5e
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions