diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-03 23:42:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-03 23:42:12 +0000 |
commit | b42398bb30e47313f42f91292657a9b8cc752511 (patch) | |
tree | 7f7a9b8b38d492b841a491d8789661abe918d521 /media/libnbaio/NBAIO.cpp | |
parent | 79ccdb52ee5de2a7f65b34e21970c40d1de2682a (diff) | |
parent | 72e54af9fcdc4754914fe2bf8de699523538b315 (diff) | |
download | frameworks_av-b42398bb30e47313f42f91292657a9b8cc752511.zip frameworks_av-b42398bb30e47313f42f91292657a9b8cc752511.tar.gz frameworks_av-b42398bb30e47313f42f91292657a9b8cc752511.tar.bz2 |
Merge "Use const NBAIO_Format& in parameter lists"
Diffstat (limited to 'media/libnbaio/NBAIO.cpp')
-rw-r--r-- | media/libnbaio/NBAIO.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/libnbaio/NBAIO.cpp b/media/libnbaio/NBAIO.cpp index e0d2c21..290604e 100644 --- a/media/libnbaio/NBAIO.cpp +++ b/media/libnbaio/NBAIO.cpp @@ -22,12 +22,12 @@ namespace android { -size_t Format_frameSize(NBAIO_Format format) +size_t Format_frameSize(const NBAIO_Format& format) { return Format_channelCount(format) * sizeof(short); } -size_t Format_frameBitShift(NBAIO_Format format) +size_t Format_frameBitShift(const NBAIO_Format& format) { // sizeof(short) == 2, so frame size == 1 << channels return Format_channelCount(format); @@ -51,7 +51,7 @@ enum { Format_C_Mask = 0x18 }; -unsigned Format_sampleRate(NBAIO_Format format) +unsigned Format_sampleRate(const NBAIO_Format& format) { if (format == Format_Invalid) { return 0; @@ -78,7 +78,7 @@ unsigned Format_sampleRate(NBAIO_Format format) } } -unsigned Format_channelCount(NBAIO_Format format) +unsigned Format_channelCount(const NBAIO_Format& format) { if (format == Format_Invalid) { return 0; |