Synced
AudioClipImporter.ImportAsync
Section titled “AudioClipImporter.ImportAsync”
- Validates source metadata and emits the compact runtime and immutable encoded-data artifacts.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Assets
Declaration
Section titled “Declaration”protected override System.Threading.Tasks.ValueTask Inno.Audio.Assets.AudioClipImporter.ImportAsync(Inno.Assets.Pipeline.AssetImportContext context, Inno.Assets.Pipeline.AssetImportWriter<Inno.Audio.AudioClipAsset> output, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter context: Source bytes and normalized source extension for the current import.
Parameter output: Writer that receives the audio asset and its two runtime artifacts.
Parameter cancellationToken: Token used to cancel artifact writes.
Returns
Section titled “Returns”A task that completes after both artifacts have been committed.