Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a new audio device for one runtime audio generation.

API: engine
Project: Inno.Adapter.Audio

public Inno.Audio.IAudioDevice Inno.Adapter.Audio.AudioBackendCatalog.CreateDevice(Inno.Adapter.Audio.AudioBackendId backend, Inno.Adapter.Audio.AudioBackendOptions options)

Parameter backend: audio implementation selected by the composition root.

Parameter options: Backend-neutral device options.

A caller-owned backend-neutral audio device.

Exception T:System.NotSupportedException: Thrown when the catalog does not contain the selected backend.

Exception T:System.InvalidOperationException: The selected provider returned no service.