From 51d53cd993043d9286e12cba884e6ee4d10b5fac Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Fri, 31 Jan 2014 09:38:33 -0800 Subject: Change Format_Invalid from enum to global const This is in preparation for changing the typedef to a struct Change-Id: I36d1fe81d2f974224750f753453753303c224591 --- include/media/nbaio/NBAIO.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/media') diff --git a/include/media/nbaio/NBAIO.h b/include/media/nbaio/NBAIO.h index b809351..9c9721a 100644 --- a/include/media/nbaio/NBAIO.h +++ b/include/media/nbaio/NBAIO.h @@ -53,9 +53,8 @@ enum { // 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; -enum { - Format_Invalid -}; + +extern const NBAIO_Format Format_Invalid; // Return the frame size of an NBAIO_Format in bytes size_t Format_frameSize(const NBAIO_Format& format); -- cgit v1.1