WavAudioInfo class
Metadata and raw PCM payload parsed from a RIFF WAVE (.wav) byte buffer.
Constructors
- WavAudioInfo({required int sampleRate, required int numChannels, required int bitsPerSample, required Uint8List pcmBytes})
-
Creates a parsed WavAudioInfo result.
const
Properties
- bitsPerSample → int
-
Bits per sample (e.g.
16).final - duration → Duration
-
Playback duration of pcmBytes.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- numChannels → int
-
Number of audio channels (
1= mono,2= stereo).final - pcmBytes → Uint8List
-
Raw PCM audio payload stripped of its WAV header.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
Audio sample rate in Hz (e.g.
16000,24000,48000).final
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