AudioTime class
A class for representing audio time.
Constructors
- AudioTime(double seconds)
-
Constructs an AudioTime from
seconds.const - AudioTime.fromDuration(Duration duration)
-
Constructs an AudioTime from
duration. - AudioTime.fromFrames(int frames, {required AudioFormat format})
-
Constructs an AudioTime from
framesandformat.
Properties
Methods
-
computeFrames(
AudioFormat format) → int -
Compute the number of frames from
format. -
formatHHMMSS(
) → String - Format seconds as HH:MM:SS.
-
formatMMSS(
) → String - Format seconds as MM:SS.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
AudioTime other) → AudioTime -
operator +(
AudioTime other) → AudioTime -
operator -(
AudioTime other) → AudioTime -
operator /(
AudioTime other) → AudioTime -
operator <(
AudioTime other) → bool -
operator <=(
AudioTime other) → bool -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
AudioTime other) → bool -
operator >=(
AudioTime other) → bool