Synced
AudioRuntime.PreloadAsync
Section titled “AudioRuntime.PreloadAsync”
- Prepares and explicitly retains a clip cache entry.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Runtime
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask Inno.Audio.Runtime.AudioRuntime.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 retain.
Parameter loadMode: Storage strategy override.
Parameter cancellationToken: Cancellation token observed before the cache commit.
Returns
Section titled “Returns”An operation completed at an update safety point after native preparation succeeds or fails.