Пример #1
0
 /// <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());
Пример #2
0
 /// <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);