summaryrefslogtreecommitdiffstats
path: root/media/libmedia/MediaProfiles.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-04-24 14:35:14 -0700
committerGlenn Kasten <gkasten@google.com>2012-04-25 18:41:32 -0700
commite0fa467e1150c65a7b1b1ed904c579b40f97c9df (patch)
tree44ae1e182fd15695fccf5d1f396f99edc7942ee5 /media/libmedia/MediaProfiles.cpp
parente370bb62b89d2f2980f519392010ea08a24c558e (diff)
downloadframeworks_av-e0fa467e1150c65a7b1b1ed904c579b40f97c9df.zip
frameworks_av-e0fa467e1150c65a7b1b1ed904c579b40f97c9df.tar.gz
frameworks_av-e0fa467e1150c65a7b1b1ed904c579b40f97c9df.tar.bz2
Move frame count calculations for fast tracks
For fast tracks: move the default and minimum frame count calculations from client to server. If accepted, the default and minimum frame count is the fast mixer (HAL) frame count. If denied, the default and minimum frame count is the same as it currently is for normal tracks. For normal tracks: there is no change yet, preserve legacy behavior for now but add a FIXME to change this later. Bug fix: the test for buffer alignment matches channelCount was wrong. Bug fix: check for 8-bit data in shared memory, which isn't supported. Optimizations: - in set(), only call AudioSystem::getOutputSamplingRate() when needed - in createTrack_l(), only call AudioSystem::getSamplingRate() and AudioSystem::getFrameCount() when needed Change-Id: I79d2fe507db1a8f7bb094c71da8a129951dbb82f
Diffstat (limited to 'media/libmedia/MediaProfiles.cpp')
0 files changed, 0 insertions, 0 deletions