Package: android.hardware.audio@2.0

types

Properties

MacAddress

typedef uint8_t[6] MacAddress

IEEE 802 MAC address.

Result

enum Result: int32_t
Details
Members
OK
NOT_INITIALIZED
INVALID_ARGUMENTS
INVALID_STATE
NOT_SUPPORTED

AudioDrain

enum AudioDrain: int32_t
Details
Members
ALL
drain() returns when all data has been played.
EARLY_NOTIFY
drain() returns a short time before all data from the current track has been played to give time for gapless track switch.
Annotations
export
name="audio_drain_type_t" , value_prefix="AUDIO_DRAIN_"

MessageQueueFlagBits

enum MessageQueueFlagBits: uint32_t

The message queue flags used to synchronize reads and writes from message queues used by StreamIn and StreamOut.

Details
Members
NOT_EMPTY = 1 << 0
NOT_FULL = 1 << 1

TimeSpec

struct TimeSpec {uint64_t tvSec; uint64_t tvNSec}

A substitute for POSIX timespec.

Details
Members
tvSec
tvNSec

ParameterValue

struct ParameterValue {string key; string value}
Details
Members
key
value

DeviceAddress

struct DeviceAddress {AudioDevice device; union Address address; string busAddress; string rSubmixAddress}

Specifies a device in case when several devices of the same type can be connected(e.g.BT A2DP, USB).

Details
Members
device
address
busAddress
rSubmixAddress

MmapBufferInfo

struct MmapBufferInfo {memory sharedMemory; int32_t bufferSizeFrames; int32_t burstSizeFrames}

Mmap buffer descriptor returned by IStream.createMmapBuffer().Used by streams opened in mmap mode.

Details
Members
sharedMemory
bufferSizeFrames
burstSizeFrames

MmapPosition

struct MmapPosition {int64_t timeNanoseconds; int32_t positionFrames}

Mmap buffer read/write position returned by IStream.getMmapPosition().Used by streams opened in mmap mode.

Details
Members
timeNanoseconds
positionFrames