using System;
namespace NAudio.CoreAudioApi.Interfaces
{
///
/// Audio Client WASAPI Error Codes (HResult)
///
public static class AudioClientErrorCode
{
// All error codes are precalculated.
// Calculation:
// (winerror.h)
// #define FACILITY_AUDCLNT 2185
// (audioclient.h)
// #define AUDCLNTERR(n) MAKEHRESULT(SEVERITYERROR, FACILITYAUDCLNT, n)
///
/// AUDCLNT_E_NOT_INITIALIZED
///
public const int NotInitialized = unchecked((int)0x88890001);
///
/// AUDCLNT_E_ALREADY_INITIALIZED
///
public const int AlreadyInitialized = unchecked((int)0x88890002);
///
/// AUDCLNT_E_WRONG_ENDPOINT_TYPE
///
public const int WrongEndpointType = unchecked((int)0x88890003);
///
/// AUDCLNT_E_DEVICE_INVALIDATED
///
public const int DeviceInvalidated = unchecked((int)0x88890004);
///
/// AUDCLNT_E_NOT_STOPPED
///
public const int NotStopped = unchecked((int)0x88890005);
///
/// AUDCLNT_E_BUFFER_TOO_LARGE
///
public const int BufferTooLarge = unchecked((int)0x88890006);
///
/// AUDCLNT_E_OUT_OF_ORDER
///
public const int OutOfOrder = unchecked((int)0x88890007);
///
/// AUDCLNT_E_UNSUPPORTED_FORMAT
///
public const int UnsupportedFormat = unchecked((int)0x88890008);
///
/// AUDCLNT_E_INVALID_SIZE
///
public const int InvalidSize = unchecked((int)0x88890009);
///
/// AUDCLNT_E_DEVICE_IN_USE
///
public const int DeviceInUse = unchecked((int)0x8889000A);
///
/// AUDCLNT_E_BUFFER_OPERATION_PENDING
///
public const int BufferOperationPending = unchecked((int)0x8889000B);
///
/// AUDCLNT_E_THREAD_NOT_REGISTERED
///
public const int ThreadNotRegistered = unchecked((int)0x8889000C);
///
/// AUDCLNT_E_NO_SINGLE_PROCESS
///
public const int NoSingleProcess = unchecked((int)0x8889000D);
///
/// AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED
///
public const int ExclusiveModeNotAllowed = unchecked((int)0x8889000E);
///
/// AUDCLNT_E_ENDPOINT_CREATE_FAILED
///
public const int EndpointCreateFailed = unchecked((int)0x8889000F);
///
/// AUDCLNT_E_SERVICE_NOT_RUNNING
///
public const int ServiceNotRunning = unchecked((int)0x88890010);
///
/// AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED
///
public const int EventHandleNotExpected = unchecked((int)0x88890011);
///
/// AUDCLNT_E_EXCLUSIVE_MODE_ONLY
///
public const int ExclusiveModeOnly = unchecked((int)0x88890012);
///
/// AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL
///
public const int BufferDurationPeriodNotEqual = unchecked((int)0x88890013);
///
/// AUDCLNT_E_EVENTHANDLE_NOT_SET
///
public const int EventHandleNotSet = unchecked((int)0x88890014);
///
/// AUDCLNT_E_INCORRECT_BUFFER_SIZE
///
public const int IncorrectBufferSize = unchecked((int)0x88890015);
///
/// AUDCLNT_E_BUFFER_SIZE_ERROR
///
public const int BufferSizeError = unchecked((int)0x88890016);
///
/// AUDCLNT_E_CPUUSAGE_EXCEEDED
///
public const int CpuUsageExceeded = unchecked((int)0x88890017);
///
/// AUDCLNT_E_BUFFER_ERROR
///
public const int BufferError = unchecked((int)0x88890018);
///
/// AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED
///
public const int BufferSizeNotAligned = unchecked((int)0x88890019);
///
/// AUDCLNT_E_INVALID_DEVICE_PERIOD
///
public const int InvalidDevicePeriod = unchecked((int)0x88890020);
///
/// AUDCLNT_E_INVALID_STREAM_FLAG
///
public const int InvalidStreamFlag = unchecked((int)0x88890021);
///
/// AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE
///
public const int EndpointOffloadNotCapable = unchecked((int)0x88890022);
///
/// AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES
///
public const int OutOfOffloadResources = unchecked((int)0x88890023);
///
/// AUDCLNT_E_OFFLOAD_MODE_ONLY
///
public const int OffloadModeOnly = unchecked((int)0x88890024);
///
/// AUDCLNT_E_NONOFFLOAD_MODE_ONLY
///
public const int NonOffloadModeOnly = unchecked((int)0x88890025);
///
/// AUDCLNT_E_RESOURCES_INVALIDATED
///
public const int ResourcesInvalidated = unchecked((int)0x88890026);
///
/// AUDCLNT_E_RAW_MODE_UNSUPPORTED
///
public const int RawModeUnsupported = unchecked((int)0x88890027);
///
/// AUDCLNT_E_ENGINE_PERIODICITY_LOCKED
///
public const int EnginePeriodicityLocked = unchecked((int)0x88890028);
///
/// AUDCLNT_E_ENGINE_FORMAT_LOCKED
///
public const int EngineFormatLocked = unchecked((int)0x88890029);
///
/// AUDCLNT_E_HEADTRACKING_ENABLED
///
public const int HeadTrackingEnabled = unchecked((int)0x88890030);
///
/// AUDCLNT_E_HEADTRACKING_UNSUPPORTED
///
public const int HeadTrackingUnsupported = unchecked((int)0x88890040);
}
}