Skip to content

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 and AudioSource are conceptually the same things.
  • RemoteAudioSource is used when a URL 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 of AudioSource that can be shuffled. Shuffle is done dart side (from JustAudio), all we get is an array of Integers from it, indicating which way to go for the next track.
  • LoopingAudioSource is a track that can be repeated N times (nothing concerning LoopMode).
  • ClippingAudioSource is a track that is only repeated from a specific time to a specific time: e.g. track X, which lasts 3 minutes, a ClippingAudioSource allows it to be played only from minute 1 to minute 1 and 30 seconds.
Clone this wiki locally