Synced
AudioBackendCatalog.CreateDevice
Section titled “AudioBackendCatalog.CreateDevice”
- Creates a new audio device for one runtime audio generation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Adapter.Audio
Declaration
Section titled “Declaration”public Inno.Audio.IAudioDevice Inno.Adapter.Audio.AudioBackendCatalog.CreateDevice(Inno.Adapter.Audio.AudioBackendId backend, Inno.Adapter.Audio.AudioBackendOptions options)Parameters
Section titled “Parameters”Parameter backend: audio implementation selected by the composition root.
Parameter options: Backend-neutral device options.
Returns
Section titled “Returns”A caller-owned backend-neutral audio device.
Exceptions
Section titled “Exceptions”Exception T:System.NotSupportedException: Thrown when the catalog does not contain the selected backend.
Exception T:System.InvalidOperationException: The selected provider returned no service.