-
-
Notifications
You must be signed in to change notification settings - Fork 0
AudioSource classes explanation
Gabriele Marcato edited this page Aug 30, 2022
·
1 revision
Explanation of AudioSource subclasses: what they are and what they do...
-
TrackResource
andAudioSource
are conceptually the same things. -
RemoteAudioSource
is used when aURL
comes to your app and you have to stream data from it. -
LocalAudioSource
from a local track, directly inside your project. -
ConcatenatingAudioSource
is a list ofAudioSource
that can be shuffled. Shuffle is done dart side (from JustAudio), all we get is an array ofIntegers
from it, indicating which way to go for the next track. -
LoopingAudioSource
is a track that can be repeated N times (nothing concerningLoopMode
). -
ClippingAudioSource
is a track that is only repeated from a specific time to a specific time: e.g. trackX
, which lasts 3 minutes, aClippingAudioSource
allows it to be played only from minute 1 to minute 1 and 30 seconds.