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 {
160 enum class DataCallbackResult : int32_t {
172 enum class Result : int32_t {
175 ErrorDisconnected = -899,
176 ErrorIllegalArgument = -898,
177 ErrorInternal = -896,
178 ErrorInvalidState = -895,
179 ErrorInvalidHandle = -892,
180 ErrorUnimplemented = -890,
181 ErrorUnavailable = -889,
182 ErrorNoFreeHandles = -888,
183 ErrorNoMemory = -887,
186 ErrorWouldBlock = -884,
187 ErrorInvalidFormat = -883,
188 ErrorOutOfRange = -882,
189 ErrorNoService = -881,
190 ErrorInvalidRate = -880,
208 enum class SharingMode : int32_t {
233 enum class PerformanceMode : int32_t {
254 enum class AudioApi : int32_t {
258 Unspecified = kUnspecified,
279 enum class SampleRateConversionQuality : int32_t {
316 enum class Usage : int32_t {
325 VoiceCommunication = 2,
330 VoiceCommunicationSignalling = 3,
346 NotificationRingtone = 6,
351 NotificationEvent = 10,
356 AssistanceAccessibility = 11,
361 AssistanceNavigationGuidance = 12,
366 AssistanceSonification = 13,
392 enum ContentType : int32_t {
425 enum InputPreset : int32_t {
439 VoiceRecognition = 6,
444 VoiceCommunication = 7,
458 VoicePerformance = 10,
495 enum ChannelCount : int32_t {
499 Unspecified = kUnspecified,
526 enum class ChannelMask : uint32_t {
527 Unspecified = kUnspecified,
530 FrontCenter = 1 << 2,
531 LowFrequency = 1 << 3,
534 FrontLeftOfCenter = 1 << 6,
535 FrontRightOfCenter = 1 << 7,
540 TopFrontLeft = 1 << 12,
541 TopFrontCenter = 1 << 13,
542 TopFrontRight = 1 << 14,
543 TopBackLeft = 1 << 15,
544 TopBackCenter = 1 << 16,
545 TopBackRight = 1 << 17,
546 TopSideLeft = 1 << 18,
547 TopSideRight = 1 << 19,
548 BottomFrontLeft = 1 << 20,
549 BottomFrontCenter = 1 << 21,
550 BottomFrontRight = 1 << 22,
551 LowFrequency2 = 1 << 23,
552 FrontWideLeft = 1 << 24,
553 FrontWideRight = 1 << 25,
569 CM2Point1 = FrontLeft |
583 TriBack = FrontLeft |
590 CM3Point1 = FrontLeft |
598 CM2Point0Point2 = FrontLeft |
606 CM2Point1Point2 = CM2Point0Point2 |
612 CM3Point0Point2 = FrontLeft |
621 CM3Point1Point2 = CM3Point0Point2 |
635 QuadSide = FrontLeft |
643 Surround = FrontLeft |
657 CM5Point1 = FrontLeft |
667 CM5Point1Side = FrontLeft |
677 CM6Point1 = FrontLeft |
688 CM7Point1 = CM5Point1 |
695 CM5Point1Point2 = CM5Point1 |
702 CM5Point1Point4 = CM5Point1 |
711 CM7Point1Point2 = CM7Point1 |
718 CM7Point1Point4 = CM7Point1 |
727 CM9Point1Point4 = CM7Point1Point4 |
734 CM9Point1Point6 = CM9Point1Point4 |
741 FrontBack = FrontCenter |
748 enum class SpatializationBehavior : int32_t {
753 Unspecified = kUnspecified,
775 enum class PrivacySensitiveMode : int32_t {
781 Unspecified = kUnspecified,
802 enum class AllowedCapturePolicy : int32_t {
807 Unspecified = kUnspecified,
879 static bool areWorkaroundsEnabled() {
880 return mWorkaroundsEnabled;
893 static bool mWorkaroundsEnabled;
Definition Definitions.h:855
static int32_t SampleRate
Definition Definitions.h:860
static int32_t FramesPerBurst
Definition Definitions.h:862
static int32_t ChannelCount
Definition Definitions.h:864
Definition Definitions.h:876
static void setWorkaroundsEnabled(bool enabled)
Definition Definitions.h:888
Definition ResultWithValue.h:47
Definition Definitions.h:871