summaryrefslogtreecommitdiffstats
path: root/docs/html/resources/samples
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-12-14 21:12:05 -0800
committerDave Sparks <davidsparks@android.com>2009-12-14 21:48:17 -0800
commit66d28cedd92dcc1669ace23231da1b8c1374ff2f (patch)
tree5e667867fb0a9f87aad5a9be18dca97b7195dca9 /docs/html/resources/samples
parent725218602e8505cd6fe3075253fcb792727e2431 (diff)
downloadframeworks_base-66d28cedd92dcc1669ace23231da1b8c1374ff2f.zip
frameworks_base-66d28cedd92dcc1669ace23231da1b8c1374ff2f.tar.gz
frameworks_base-66d28cedd92dcc1669ace23231da1b8c1374ff2f.tar.bz2
Fix SoundPool buffer size rounding error. Bug 2327620.
AudioTrack was modified earlier to calculate minimum buffer size based on the hardware reported latency. Previously, it was a hard-coded value. As a result of this change, the minimum buffer size is now variable based on hardware latency. On Passion, this brought out a subtle rounding error in the buffer size calculation in SoundPool. This can cause AudioTrack creation to fail based on the requested sample rate. This fix calculates the total buffer size first, and then does rounding before dividing by the number of buffers.
Diffstat (limited to 'docs/html/resources/samples')
0 files changed, 0 insertions, 0 deletions