Table of Contents

Struct AsioRawInputBuffer

Namespace
NAudio.Wave
Assembly
NAudio.Asio.dll

Zero-copy read-only view of a single ASIO input channel in the driver's native format. Obtained via RawInput(int) or RawInput(int).

public readonly ref struct AsioRawInputBuffer
Inherited Members

Remarks

The underlying memory is owned by the ASIO driver and is valid only for the duration of the buffer-switch callback that produced this value. Do not store this struct, pass it to another thread, or access it after the callback / event handler returns.

Properties

Bytes

Raw bytes of the channel, interpreted according to Format.

public ReadOnlySpan<byte> Bytes { get; }

Property Value

ReadOnlySpan<byte>

Format

Native ASIO sample format of the bytes in this buffer.

public AsioSampleType Format { get; }

Property Value

AsioSampleType

Frames

Number of audio frames represented by Bytes.

public int Frames { get; }

Property Value

int