Skip to main content
Version: 20 Mar 2024

Result Codes

Module: Audio / Audio Definitions / Acoustics

RESULT CODES.

Enums

Name
enumAnonymous Enum 3
{
MLResultAPIPrefix_Audio = ( 0x9e11 << 16)
}
enumMLAudioResult
{
MLAudioResult_NotImplemented = MLResultAPIPrefix_Audio,
MLAudioResult_HandleNotFound,
MLAudioResult_InvalidSampleRate,
MLAudioResult_InvalidBitsPerSample,
MLAudioResult_InvalidValidBits,
MLAudioResult_InvalidSampleFormat,
MLAudioResult_InvalidChannelCount,
MLAudioResult_InvalidBufferSize,
MLAudioResult_BufferNotReady,
MLAudioResult_FileNotFound,
MLAudioResult_FileNotRecognized,
MLAudioResult_ResourceNotFound,
MLAudioResult_ResourceDiscarded,
MLAudioResult_OperationUnavailable,
MLAudioResult_OperationNotReady,
MLAudioResult_InternalConfigError,
MLAudioResult_Ensure32Bits = 0x7FFFFFFF
}
Return values for Audio Service API calls.

Functions

Name
const char *MLAudioGetResultString(MLResult result_code)
Returns an ASCII string for each result code.

Enums Documentation

Anonymous Enum 3

EnumeratorValueDescription
MLResultAPIPrefix_Audio( 0x9e11 << 16)Defines the prefix for MLAudioResult codes.

MLAudioResult

EnumeratorValueDescription
MLAudioResult_NotImplementedMLResultAPIPrefix_AudioFunction not implemented.
MLAudioResult_HandleNotFoundNot a valid MLHandle for a sound or input.
MLAudioResult_InvalidSampleRateSample rate not supported.
MLAudioResult_InvalidBitsPerSampleBits per sample not supported.
MLAudioResult_InvalidValidBitsValid bits per sample not supported.
MLAudioResult_InvalidSampleFormatSample format not supported.
MLAudioResult_InvalidChannelCountChannel count not supported.
MLAudioResult_InvalidBufferSizeBuffer size too small.
MLAudioResult_BufferNotReadyBuffer not ready for read or write.
MLAudioResult_FileNotFoundSpecified file not found.
MLAudioResult_FileNotRecognizedSpecified file has unsupported format.
MLAudioResult_ResourceNotFoundSpecified resource is not on the list.
MLAudioResult_ResourceDiscardedData was unloaded or file was closed.
MLAudioResult_OperationUnavailableRequested operation not possible for given item.
MLAudioResult_OperationNotReadyRequested operation has not yet been processed.
MLAudioResult_InternalConfigErrorInternal configuration problem was detected.
MLAudioResult_Ensure32Bits0x7FFFFFFFEnsure enum is represented as 32 bits.

Return values for Audio Service API calls.

API Level:

  • 4

Functions Documentation

MLAudioGetResultString

const char * MLAudioGetResultString(
MLResult result_code
)

Returns an ASCII string for each result code.

Parameters

MLResultresult_codeMLResult to be converted.

MLResult and MLAudioResult codes are converted to more detailed descriptions.

Return: ASCII string containing readable version of result code.