AudioFormat class
A class representing the format of audio in a CAF file.
Constructors
- AudioFormat({required double sampleRate, required FourByteString formatID, required int formatFlags, required int bytesPerPacket, required int framesPerPacket, required int channelsPerPacket, required int bitsPerChannel})
Properties
- bitsPerChannel → int
-
The number of bits per channel.
final
- bytesPerPacket → int
-
The number of bytes per packet.
final
- channelsPerPacket → int
-
The number of channels per packet.
final
- formatFlags → int
-
The format flags of the audio.
final
- formatID → FourByteString
-
The format ID of the audio.
final
- framesPerPacket → int
-
The number of frames per packet.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → double
-
The sample rate of the audio.
final
Methods
-
encode(
) → Uint8List - Encodes the audio format to a Uint8List.
-
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