WavFileAudioSinkSession class final

Prepared file-backed WAV recording session.

Properties

abortPolicy → WavFileAbortPolicy
Configured abort cleanup behavior.
final
capabilities → AudioSinkCapabilities
Sink ordering characteristics.
no setter
dataLength → int
Encoded audio bytes currently accepted, excluding the header.
no setter
encoding → WavSampleEncoding
PCM representation stored in the WAV data chunk.
final
encodingBufferBytes → int
Maximum temporary encoding allocation per file write.
final
format → AudioFormat
Fixed PCM format accepted by this session.
final
gapPolicy → WavGapPolicy
Configured timeline-gap behavior.
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
Destination file path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → AudioSessionStatus
Current status.
no setter
statuses → Stream<AudioSessionStatus>
Broadcast lifecycle updates, including the initial prepared state.
no setter

Methods

abort({AudioFailure? failure}) → Future<void>
Immediately stops pending work and discards buffered data.
close() → Future<void>
Releases resources. Implementations must be asynchronous and idempotent.
finish({AudioCancellationToken? cancellationToken}) → Future<void>
Gracefully drains and finalizes accepted frames.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(AudioFrame frame, {AudioCancellationToken? cancellationToken}) → Future<void>
Writes one frame after all previously returned write futures complete.

Operators

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