AudioLoopClock class
An audio clock that ticks in a loop.
This clock is useful for running audio task as fast as possible like converting audio data. You should stop the clock inside the callback to prevent the isolate from being blocked.
- Inheritance
-
- Object
- AudioClock
- AudioLoopClock
- Available extensions
Constructors
- AudioLoopClock.new()
- General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
Properties
- elapsedTime → AudioTime
-
The elapsed time of the clock.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isStarted → bool
-
Whether the clock is started.
no setteroverride
- 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
-
reset(
) → void -
Resets the clock.
override
-
runWithBuffer(
{required AudioFrames frames, required bool onTick(AudioClock, AudioBuffer)}) → Future< void> -
Available on AudioClock, provided by the AudioClockExtension extension
Runs the clock with an audio buffer while theonTick
callback returns true. -
start(
{required AudioClockCallback onTick}) → void -
Starts the clock.
override
-
stop(
) → void -
Stops the clock.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited