Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51d53cd9 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Change Format_Invalid from enum to global const

This is in preparation for changing the typedef to a struct

Change-Id: I36d1fe81d2f974224750f753453753303c224591
parent b42398bb
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ size_t Format_frameBitShift(const NBAIO_Format& format)
    return Format_channelCount(format);
}

const NBAIO_Format Format_Invalid = { 0 };

enum {
    Format_SR_8000,
    Format_SR_11025,