Skip to content

AudioService.LoadSoundAsync(string, CancellationToken) Method

Definition

Namespace: Brine2D.Audio

Loads a sound effect from a file.

C#
public System.Threading.Tasks.Task<Brine2D.Audio.ISoundEffect> LoadSoundAsync(string path, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

path System.String

cancellationToken System.Threading.CancellationToken

Implements LoadSoundAsync\(string, CancellationToken\)

Returns

System.Threading.Tasks.Task<ISoundEffect>