Table of Contents

Struct AudioBuffer

Namespace
NAudio.Wave
Assembly
NAudio.Wasapi.dll

A captured audio buffer suitable for async consumption (heap-allocated copy).

public readonly struct AudioBuffer
Inherited Members

Properties

Data

The captured audio data.

public ReadOnlyMemory<byte> Data { get; }

Property Value

ReadOnlyMemory<byte>

DevicePosition

Device position at time of capture.

public long DevicePosition { get; }

Property Value

long

Flags

Buffer flags from WASAPI (e.g. Silent).

public AudioClientBufferFlags Flags { get; }

Property Value

AudioClientBufferFlags

QPCPosition

QPC position at time of capture (100-nanosecond units).

public long QPCPosition { get; }

Property Value

long