IAssetLoader.GetOrLoadSoundAsync(string, CancellationToken) Method
Definition¶
Namespace: Brine2D.Assets
Returns a cached sound effect, loading it on first request.
System.Threading.Tasks.Task<Brine2D.Audio.ISoundEffect> GetOrLoadSoundAsync(string path, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters¶
path System.String
cancellationToken System.Threading.CancellationToken