diff options
author | Glenn Kasten <gkasten@google.com> | 2014-01-31 09:47:15 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-03 17:11:01 -0800 |
commit | 1ec712f180072a7eb2131be09862921ae62dc2b4 (patch) | |
tree | e4ce2a1d2896413bf0fb4e8370d4b61b7a814890 /media/libnbaio | |
parent | c4b8b32dec91a11a83d0a7ab49747606d16d39a5 (diff) | |
download | frameworks_av-1ec712f180072a7eb2131be09862921ae62dc2b4.zip frameworks_av-1ec712f180072a7eb2131be09862921ae62dc2b4.tar.gz frameworks_av-1ec712f180072a7eb2131be09862921ae62dc2b4.tar.bz2 |
Add FIXMEs about audio_format_t assumption
Change-Id: I0d38241b61f70013573f4a0b9306547afe5f38ad
Diffstat (limited to 'media/libnbaio')
-rw-r--r-- | media/libnbaio/NBAIO.cpp | 2 |
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); } |