17#ifndef OBOE_DEFINITIONS_H
18#define OBOE_DEFINITIONS_H
31 constexpr int32_t kUnspecified = 0;
37 constexpr int64_t kNanosPerMicrosecond = 1000;
42 constexpr int64_t kNanosPerMillisecond = kNanosPerMicrosecond * 1000;
47 constexpr int64_t kMillisPerSecond = 1000;
52 constexpr int64_t kNanosPerSecond = kNanosPerMillisecond * kMillisPerSecond;
57 enum class StreamState : int32_t {
77 enum class Direction : int32_t {
93 enum class AudioFormat : int32_t {
195 enum class DataCallbackResult : int32_t {
207 enum class Result : int32_t {
210 ErrorDisconnected = -899,
211 ErrorIllegalArgument = -898,
212 ErrorInternal = -896,
213 ErrorInvalidState = -895,
214 ErrorInvalidHandle = -892,
215 ErrorUnimplemented = -890,
216 ErrorUnavailable = -889,
217 ErrorNoFreeHandles = -888,
218 ErrorNoMemory = -887,
221 ErrorWouldBlock = -884,
222 ErrorInvalidFormat = -883,
223 ErrorOutOfRange = -882,
224 ErrorNoService = -881,
225 ErrorInvalidRate = -880,
243 enum class SharingMode : int32_t {
268 enum class PerformanceMode : int32_t {
293 POWER_SAVING_OFFLOADED = 13,
299 enum class AudioApi : int32_t {
303 Unspecified = kUnspecified,
324 enum class SampleRateConversionQuality : int32_t {
361 enum class Usage : int32_t {
370 VoiceCommunication = 2,
375 VoiceCommunicationSignalling = 3,
391 NotificationRingtone = 6,
396 NotificationEvent = 10,
401 AssistanceAccessibility = 11,
406 AssistanceNavigationGuidance = 12,
411 AssistanceSonification = 13,
437 enum ContentType : int32_t {
470 enum InputPreset : int32_t {
484 VoiceRecognition = 6,
489 VoiceCommunication = 7,
503 VoicePerformance = 10,
540 enum ChannelCount : int32_t {
544 Unspecified = kUnspecified,
571 enum class ChannelMask : uint32_t {
572 Unspecified = kUnspecified,
575 FrontCenter = 1 << 2,
576 LowFrequency = 1 << 3,
579 FrontLeftOfCenter = 1 << 6,
580 FrontRightOfCenter = 1 << 7,
585 TopFrontLeft = 1 << 12,
586 TopFrontCenter = 1 << 13,
587 TopFrontRight = 1 << 14,
588 TopBackLeft = 1 << 15,
589 TopBackCenter = 1 << 16,
590 TopBackRight = 1 << 17,
591 TopSideLeft = 1 << 18,
592 TopSideRight = 1 << 19,
593 BottomFrontLeft = 1 << 20,
594 BottomFrontCenter = 1 << 21,
595 BottomFrontRight = 1 << 22,
596 LowFrequency2 = 1 << 23,
597 FrontWideLeft = 1 << 24,
598 FrontWideRight = 1 << 25,
614 CM2Point1 = FrontLeft |
628 TriBack = FrontLeft |
635 CM3Point1 = FrontLeft |
643 CM2Point0Point2 = FrontLeft |
651 CM2Point1Point2 = CM2Point0Point2 |
657 CM3Point0Point2 = FrontLeft |
666 CM3Point1Point2 = CM3Point0Point2 |
680 QuadSide = FrontLeft |
688 Surround = FrontLeft |
702 CM5Point1 = FrontLeft |
712 CM5Point1Side = FrontLeft |
722 CM6Point1 = FrontLeft |
733 CM7Point1 = CM5Point1 |
740 CM5Point1Point2 = CM5Point1 |
747 CM5Point1Point4 = CM5Point1 |
756 CM7Point1Point2 = CM7Point1 |
763 CM7Point1Point4 = CM7Point1 |
772 CM9Point1Point4 = CM7Point1Point4 |
779 CM9Point1Point6 = CM9Point1Point4 |
786 FrontBack = FrontCenter |
793 enum class SpatializationBehavior : int32_t {
798 Unspecified = kUnspecified,
820 enum class PrivacySensitiveMode : int32_t {
826 Unspecified = kUnspecified,
847 enum class AllowedCapturePolicy : int32_t {
852 Unspecified = kUnspecified,
890 enum class DeviceType : int32_t {
1015 BuiltinSpeakerSafe = 24,
1056 enum class MMapPolicy : int32_t {
1060 Unspecified = kUnspecified,
1122 static bool areWorkaroundsEnabled() {
1123 return mWorkaroundsEnabled;
1132 mWorkaroundsEnabled = enabled;
1136 static bool mWorkaroundsEnabled;
Definition Definitions.h:1098
static int32_t SampleRate
Definition Definitions.h:1103
static int32_t FramesPerBurst
Definition Definitions.h:1105
static int32_t ChannelCount
Definition Definitions.h:1107
Definition Definitions.h:1119
static void setWorkaroundsEnabled(bool enabled)
Definition Definitions.h:1131
Definition Definitions.h:1114