WorkerAudioTrack class
An audio track played entirely off the main thread.
Properties
- buffered → Duration
-
How much audio is buffered ahead: the margin against a stall.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- positionUs → int?
-
True playback position, from what the audio device has actually consumed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- underruns → int
-
Frames the audio thread wanted and could not have. The number that says
the producer fell behind — non-zero here is what a click sounds like.
no setter
- volume ↔ double
-
getter/setter pair
Methods
-
close(
) → Future< void> -
isEnded(
) → Future< bool> - True once the worker has decoded the last packet AND the device has played everything it wrote.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - Suspends the audio thread. The worker needs no telling: with nothing consuming, the ring fills and its pump blocks on backpressure.
-
resume(
) → Future< void> - Resumes the audio thread; the worker's pump unblocks on its own.
-
seek(
int targetUs) → Future< void> -
Seeks to
targetUs. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited