mirrored_repositories/jogdog/lib
/// Interface class for all different musicProviders
abstract class MusicInterface {

  /// changes the speed of the playing music according to the
  /// given factor
  void setPlaybackSpeed(double musicChangeFactor);

  /// Toggles the music: play, pause 
  void togglePlayState();

  /// loads the music/playlist to be played
  void loadMusic();

  /// skips to [time] in the song 
  void setSongTime(Duration time);

  /// skips the song and plays the next one in the Playlist
  void skip();

  /// plays the song before the current one in the Playlist
  void previous();
}
