/// <summary> /// Plays the sound associated with the given id immidiately and in a loop /// </summary> /// <param name="soundId">a sound id</param> /// <returns>a promist to a disposable that can be used to stop the loop</returns> public static Promise <IDisposable> Loop(string soundId) => Provider.Loop(soundId.ToLower());
/// <summary> /// Plays the sound associated with the given id immidiately and in a loop /// </summary> /// <param name="soundId">a sound id</param> /// <returns>a promist to a disposable that can be used to stop the loop</returns> public static Task <IDisposable> Loop(string soundId, float volume = .1f) => Provider.Loop(soundId.ToLower(), volume);