summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-17 12:20:54 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-17 16:25:17 -0800
commit0632bad8bad41bc44184596478ec2d203d52096f (patch)
tree43aa40695d8efeeeef9b90c2fc90baff395a1ada /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent73d27c3d46ce9a19c0cc358d0b2788f1f51706d7 (diff)
Track volume cleanup
Always read and write track volumes atomically. In most places this was already being done, but there were a couple places where the left and right channels were read independently. Changed constant MAX_GAIN_INT to be a uint32_t instead of a float. It is always used as a uint32_t in comparisons and assignments. Use MAX_GAIN_INT in more places. Now that volume is always accessed atomically, removed the union and alias for uint16_t volume[2], and kept only volumeLR. Removed volatile as it's meaningless. In AudioFlinger, clamp the track volumes read from shared memory before applying master and stream volume. Change-Id: If65e2b27e5bc3db5bf75540479843041b58433f0
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions