summaryrefslogtreecommitdiffstats
path: root/media/libnbaio
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-07 21:30:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-07 21:30:56 +0000
commitddc0630dd80847dad5253bb285a16e3ed9cc0320 (patch)
treeaad7fff243b29ad9d73c0bb43e1779065606d31e /media/libnbaio
parentc7a38829841b764f509e6a688a507b8c0da82c2e (diff)
parent1ec712f180072a7eb2131be09862921ae62dc2b4 (diff)
downloadframeworks_av-ddc0630dd80847dad5253bb285a16e3ed9cc0320.zip
frameworks_av-ddc0630dd80847dad5253bb285a16e3ed9cc0320.tar.gz
frameworks_av-ddc0630dd80847dad5253bb285a16e3ed9cc0320.tar.bz2
Merge "Add FIXMEs about audio_format_t assumption"
Diffstat (limited to 'media/libnbaio')
-rw-r--r--media/libnbaio/NBAIO.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libnbaio/NBAIO.cpp b/media/libnbaio/NBAIO.cpp
index f630236..26ef8c4 100644
--- a/media/libnbaio/NBAIO.cpp
+++ b/media/libnbaio/NBAIO.cpp
@@ -24,11 +24,13 @@ namespace android {
size_t Format_frameSize(const NBAIO_Format& format)
{
+ // FIXME The sample format is hard-coded to AUDIO_FORMAT_PCM_16_BIT
return Format_channelCount(format) * sizeof(short);
}
size_t Format_frameBitShift(const NBAIO_Format& format)
{
+ // FIXME The sample format is hard-coded to AUDIO_FORMAT_PCM_16_BIT
// sizeof(short) == 2, so frame size == 1 << channels
return Format_channelCount(format);
}