summaryrefslogtreecommitdiffstats
path: root/media/libnbaio/NBAIO.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-31 09:37:35 -0800
committerGlenn Kasten <gkasten@google.com>2014-01-31 10:53:38 -0800
commit72e54af9fcdc4754914fe2bf8de699523538b315 (patch)
tree7fe0f7ca51dbaff80125ea7b12a7a0cc052315e0 /media/libnbaio/NBAIO.cpp
parente983e0a0017fce81dc3d9bea36f5abb7b7bce40b (diff)
downloadframeworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.zip
frameworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.tar.gz
frameworks_av-72e54af9fcdc4754914fe2bf8de699523538b315.tar.bz2
Use const NBAIO_Format& in parameter lists
This is in preparation for changing the typedef to a struct. Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
Diffstat (limited to 'media/libnbaio/NBAIO.cpp')
-rw-r--r--media/libnbaio/NBAIO.cpp8
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;