summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-02-28 16:52:51 -0800
committerEric Laurent <elaurent@google.com>2011-02-28 16:52:51 -0800
commit4bb21c496b2c9427c18b8370dd631339e4e11094 (patch)
treedb4452dbae5ed341dc85fcef513b2359c4a363d4 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentdd1ddc3b1626f8bc335b6e54a73e8dc18bc71bb5 (diff)
Fix issue 3479042.
The problem is that when an AudioRecord using the resampler is restarted, the resampler state is not reset (as there is no reset function in the resampler). The consequence is that the first time the record thread loop runs, it calls the resampler which consumes the remaining data in the input buffer and when this buffer is released the input index is incremented over the limit. The fix consists in implementing a reset function in the resampler. A similar problem was also present for playback but unoticed because the track buffer is always drained by the mixer when a track stops. The only problem for playback was that the initial phase fraction was wrong when restarting a track after stop (it was correct after a pause). Change-Id: Ifc2585d685f4402d29f4afc63f6efd1d69265de3
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions