summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-31 09:39:01 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-03 17:11:01 -0800
commitc4b8b32dec91a11a83d0a7ab49747606d16d39a5 (patch)
tree0f2dac4e728016b9c9244efef0a58062dad6725d /include
parent6e0d67d7b496ce17c0970a4ffd3a6f808860949c (diff)
downloadframeworks_av-c4b8b32dec91a11a83d0a7ab49747606d16d39a5.zip
frameworks_av-c4b8b32dec91a11a83d0a7ab49747606d16d39a5.tar.gz
frameworks_av-c4b8b32dec91a11a83d0a7ab49747606d16d39a5.tar.bz2
Change NBAIO_Format from typedef to struct
This will make it easier to support arbitrary sample rates, channel counts, and sample formats in NBAIO. Change-Id: I5eda412648b094358f5eefc38300e9ec8a734cd3
Diffstat (limited to 'include')
-rw-r--r--include/media/nbaio/NBAIO.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/nbaio/NBAIO.h b/include/media/nbaio/NBAIO.h
index 468508c..4150a09 100644
--- a/include/media/nbaio/NBAIO.h
+++ b/include/media/nbaio/NBAIO.h
@@ -52,7 +52,10 @@ enum {
// the combinations that are actually needed within AudioFlinger. If the list of combinations grows
// too large, then this decision should be re-visited.
// Sample rate and channel count are explicit, PCM interleaved 16-bit is assumed.
-typedef unsigned NBAIO_Format;
+struct NBAIO_Format {
+//private:
+ unsigned mPacked;
+};
extern const NBAIO_Format Format_Invalid;