Vixen
02b45cc4
csharp
public readonly record struct AudioDeviceOptions

What 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? DeviceId

    Which device, or for whichever one is default.

  • public AudioFormat Format

    The format to render in.

  • public int BufferFrames

    How many frames the device asks for at a time.

  • public int BufferCount

    How 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