Vixen
02b45cc4
csharp
public sealed class NullAudioDevice

A device that renders and throws the result away — or hands it to a test.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (6)

  • public long RenderedFrames

    How many frames this device has rendered since it was opened.

  • public AudioDeviceInfo Info

    Which device this is.

  • public AudioFormat Format

    The format it was actually opened in.

  • public int BufferFrames

    How many frames it asks for at a time.

  • public bool IsRunning

    Whether it is currently pulling.

  • public long Underruns

    Zero, always. Nothing is waiting on this device, so nothing can be late for it.

Methods (5)

  • public void Start(IAudioRenderSource source)

    Starts pulling from a source.

  • public void Stop()

    Stops pulling. Starting again is legal.

  • public int Render(Span<float> destination)

    Renders the next block into a caller's buffer.

  • public void Advance(int frames)

    Renders a number of frames and discards them.

  • public void Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Used by (17)

  • PeerVoiceChat
  • AudioEventSystemTestsVixen.Audio.Tests
  • AudioEventTestsVixen.Audio.Tests
  • AudioMixerTestsVixen.Audio.Tests
  • AudioSystemTestsVixen.Audio.Tests
  • AudioTestDataVixen.Audio.Tests
  • BuiltinParameterTestsVixen.Audio.Tests
  • LayeredEventTestsVixen.Audio.Tests
  • MixControlTestsVixen.Audio.Tests
  • MixerParameterTestsVixen.Audio.Tests
  • MultipleListenerTestsVixen.Audio.Tests
  • MusicPlayerTestsVixen.Audio.Tests
  • NullAudioBackendVixen.Audio
  • PerVoiceSendTestsVixen.Audio.Tests
  • ScattererTestsVixen.Audio.Tests
  • VirtualVoiceTestsVixen.Audio.Tests
  • VoiceParameterTestsVixen.Audio.Tests