Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Prepares a clip and retains it in the decoded or streamed cache.

API: engine
Project: Inno.Audio

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))

Parameter clip: Imported clip to prepare.

Parameter loadMode: Storage strategy override.

Parameter cancellationToken: Cancellation token observed before the cache commit.

An asynchronous operation that completes after the cache entry is ready.