SampleFormat enum

How the samples of a raw audio frame are encoded.

Inheritance
Available extensions

Values

f32 → const SampleFormat

32-bit IEEE-754 float, interleaved.

const SampleFormat(0x1, 4)
s16 → const SampleFormat

Signed 16-bit little-endian, interleaved.

const SampleFormat(0x2, 2)
s32 → const SampleFormat

Signed 32-bit little-endian, interleaved.

const SampleFormat(0x3, 4)
u8 → const SampleFormat

Unsigned 8-bit, interleaved.

const SampleFormat(0x4, 1)

Properties

bytesPerSample → int
Bytes used by one sample of one channel.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
raw → int
The ANYCODEC_SAMPLE_FORMAT_* value used by the C ABI.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromRaw(int raw) → SampleFormat?
The format whose ABI identifier is raw, or null when unknown.

Constants

values → const List<SampleFormat>
A constant List of the values in this enum, in order of their declaration.