Synced
AudioRuntime.TryRecoverDevice
Section titled “AudioRuntime.TryRecoverDevice”
- Attempts to replace a muted or lost output generation while preserving the active mixer graph.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Audio.Runtime
Declaration
Section titled “Declaration”public bool Inno.Audio.Runtime.AudioRuntime.TryRecoverDevice(System.Func<Inno.Audio.IAudioDevice> deviceFactory)Parameters
Section titled “Parameters”Parameter deviceFactory: Host-owned factory that creates a fresh initialized device candidate.
Returns
Section titled “Returns”true when output is already ready or a ready candidate was installed; otherwise false and the current muted or lost generation remains active.