Synced
AudioRuntime.ReplaceDevice
Section titled “AudioRuntime.ReplaceDevice”
- Replaces a lost or muted backend at a main-thread safety point.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Runtime
Declaration
Section titled “Declaration”public void Inno.Audio.Runtime.AudioRuntime.ReplaceDevice(Inno.Audio.IAudioDevice replacement)Parameters
Section titled “Parameters”Parameter replacement: Initialized replacement device, consumed on success and disposed if preparation fails.
Exceptions
Section titled “Exceptions”Exception T:System.AggregateException: Retirement failed after publication preparation; the generation gate is Faulted and the host must restart.
Exception T:Inno.Core.Execution.RetirementTimeoutException: Old or candidate work did not drain before its deadline. Both owners remain retained and the host must restart.