AudioRuntime.Constructor
Section titled “AudioRuntime.Constructor”
- Creates an audio runtime over one backend device generation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Runtime
Declaration
Section titled “Declaration”public Inno.Audio.Runtime.AudioRuntime.AudioRuntime(Inno.Extensibility.Types.TypeCatalog types, Inno.Audio.IAudioDevice device, Inno.Assets.IAssetArtifactLookup artifacts, Inno.Core.Events.EventDispatcher events, Inno.Core.Diagnostics.IDiagnosticReporter diagnostics, Inno.Audio.Runtime.AudioRuntimeOptions? options = null, System.Func<Inno.References.ContentReadScope>? contentScopeProvider = null, System.Func<Inno.Audio.IAudioDevice>? deviceRecoveryFactory = null)Parameters
Section titled “Parameters”Parameter types: Type catalog used for mixer and content-provider discovery.
Parameter device: Backend device whose ownership transfers to this runtime.
Parameter artifacts: Lookup for verified immutable audio-data artifacts.
Parameter events: Main-thread event dispatcher that receives voice completion events.
Parameter diagnostics: Required owner-bound diagnostic producer.
Parameter options: Optional bounded runtime resource policies.
Parameter contentScopeProvider: Optional callback that supplies update-scoped host content without coupling Runtime to Scene.
Parameter deviceRecoveryFactory: Optional host factory used to retry a real output device at main-thread update safety points.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: A required device, catalog, artifact lookup, event dispatcher, or diagnostic reporter is null.
Exception T:System.ArgumentOutOfRangeException: A voice, preload, or content limit is not positive, a byte budget is negative, or the recovery delay is invalid.