Synced
IAudioService.PreloadAsync
Section titled “IAudioService.PreloadAsync”
- Prepares a clip and retains it in the decoded or streamed cache.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio
Declaration
Section titled “Declaration”System.Threading.Tasks.ValueTask Inno.Audio.IAudioService.PreloadAsync(Inno.Audio.AudioClipAsset clip, Inno.Audio.AudioClipLoadMode loadMode = Inno.Audio.AudioClipLoadMode.Automatic, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter clip: Imported clip to prepare.
Parameter loadMode: Storage strategy override.
Parameter cancellationToken: Cancellation token observed before the cache commit.
Returns
Section titled “Returns”An asynchronous operation that completes after the cache entry is ready.