Audio Common

Enumerations that define type of Audio Elements, type and format of Codecs and type of Streams.

API Reference

Macros

ELEMENT_SUB_TYPE_OFFSET
mem_assert(x)

Enumerations

enum audio_element_type_t

Values:

AUDIO_ELEMENT_TYPE_UNKNOW = 0x01<<ELEMENT_SUB_TYPE_OFFSET
AUDIO_ELEMENT_TYPE_ELEMENT = 0x01<<(ELEMENT_SUB_TYPE_OFFSET+1)
AUDIO_ELEMENT_TYPE_PLAYER = 0x01<<(ELEMENT_SUB_TYPE_OFFSET+2)
AUDIO_ELEMENT_TYPE_SERVICE = 0x01<<(ELEMENT_SUB_TYPE_OFFSET+3)
AUDIO_ELEMENT_TYPE_PERIPH = 0x01<<(ELEMENT_SUB_TYPE_OFFSET+4)
enum audio_stream_type_t

Values:

AUDIO_STREAM_NONE = 0
AUDIO_STREAM_READER
AUDIO_STREAM_WRITER
enum audio_codec_type_t

Values:

AUDIO_CODEC_TYPE_NONE = 0
AUDIO_CODEC_TYPE_DECODER
AUDIO_CODEC_TYPE_ENCODER
enum audio_codec_t

Values:

AUDIO_CODEC_NONE = 0
AUDIO_CODEC_RAW
AUDIO_CODEC_WAV
AUDIO_CODEC_MP3
AUDIO_CODEC_AAC
AUDIO_CODEC_OPUS
AUDIO_CODEC_M4A
AUDIO_CODEC_TS
AUDIO_CODEC_AMR
AUDIO_CODEC_OGG
AUDIO_CODEC_FLAC
AUDIO_PLAYLIST_M3U8
AUDIO_PLAYLIST_PLS