summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJohn Grossman <johngro@google.com>2012-03-21 17:57:43 -0700
committerJohn Grossman <johngro@google.com>2012-03-23 11:00:38 -0700
commit2b16bf6bdbae150a3aa0da51361e3ea9e63fd3c2 (patch)
tree27a837b6b034327cd7c4aed66a3946b3348be085 /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent96fecb7f6b74176c0fad7bfa2c7ae9b80e1770cc (diff)
LibAAH_RTP: Fix handling of PCM format changes.
When an audio decoder signals a format change, we were destroying our renderer so that a new one could be created with the new format, but we were not updating our internal format state variables with the new format information. This fixes issues with AAC audio with SBR extensions; in particular content coming from Pandora. Pandora audio is currently being delivered as AAC-LC decoding to 22.05 KHz, but with an SBR layer which gives 44.1 KHz. Whether or not you are going to get 22.05 or 44.1 depends on if your decoder supports SBR ("High Efficiency" profile). Stagefright does not parse the extension sample rate present in the ESDS; instead it reports the sample rate of the base stream (22050 in this case). Its only when the decoder decides it can handle SBR that you get a chance to discover that the content is actually 44.1, information it delivers via a format change status code during read. Signed-off-by: John Grossman <johngro@google.com> Change-Id: I78fb89b4356004d7834629ccc82ca99c4cc7954a
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions