ResolvedAudioTrack class final
One audio track resolved to encoder-neutral numbers: the source to play plus the timing and gain an encoder needs, with no FFmpeg in sight.
This is what resolveAudioMix returns for an on-device or otherwise custom
encoder. All times are in seconds (resolved against the render fps and
window); the sfx offset is delayMs. The FFmpeg path builds its
AudioTrackNode from the very same numbers, so a desktop render and an
on-device render delay, trim, gain, and fade a track identically.
- Annotations
Constructors
Properties
- delayMs → int
-
How far to shift the track later, in milliseconds (
0plays at the start).final - fadeInSeconds → double?
-
How long the track ramps in from silence, in seconds;
nullfor no fade.final - fadeOutSeconds → double?
-
How long the track ramps out to silence, in seconds;
nullfor no fade.final - fadeOutStartSeconds → double
-
When the fade-out begins, in seconds (only used with fadeOutSeconds).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loop → bool
-
Whether the track repeats to fill the render window.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
The audio source as authored: an asset key, a file path, or a URL. A
custom encoder materializes it to a local file before decoding.
final
- trimEndSeconds → double?
-
Where playback ends in the source file, in seconds;
nullplays to the end.final - trimStartSeconds → double?
-
Where playback begins in the source file, in seconds;
nullplays from 0.final - volume → double
-
Linear gain applied to the track (
1plays the file as authored).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