csharp
public readonly record struct AudioDeviceOptionsWhat to open a device with.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Every field is a request. Format and BufferFrames are what was granted, and a caller that cares must read them back rather than assume — a browser, in particular, decides the sample rate itself and will not be argued with.
Fields and properties (4)
public string? DeviceIdWhich device, or for whichever one is default.
public AudioFormat FormatThe format to render in.
public int BufferFramesHow many frames the device asks for at a time.
public int BufferCountHow many buffers are queued ahead of the device.
Methods (1)
public AudioDeviceOptions()What to open a device with.
Used by (13)
- GameSoundsThirdPersonShooter
- PeerVoiceChat
- VideoGameVideoPlayback
- AudioEngineOptionsVixen.Audio
- AudioTestDataVixen.Audio.Tests
- IAudioBackendVixen.Audio
- MusicPlayerTestsVixen.Audio.Tests
- NullAudioBackendVixen.Audio
- OpenALBackendVixen.Audio.Backend.OpenAL
- OpenALBackendTestsVixen.Audio.Backend.OpenAL.Tests
- OpenALDeviceVixen.Audio.Backend.OpenAL
- SilentBackendVixen.Audio.Tests
- VirtualVoiceTestsVixen.Audio.Tests