Table of Contents

Struct AsioRawOutputBuffer

Namespace
NAudio.Wave
Assembly
NAudio.Asio.dll

Zero-copy writable view of a single ASIO output channel in the driver's native format. Obtained via RawOutput(int).

public readonly ref struct AsioRawOutputBuffer
Inherited Members

Remarks

The underlying memory is owned by the ASIO driver and is valid only for the duration of the buffer-switch callback. Writing through Bytes bypasses the library's float-to-native conversion and the automatic unwritten-output clearing — the caller is responsible for writing every frame in the buffer.

Properties

Bytes

Raw bytes of the channel, interpreted according to Format. Writes land directly in the driver buffer.

public Span<byte> Bytes { get; }

Property Value

Span<byte>

Format

Native ASIO sample format expected by the driver for this channel.

public AsioSampleType Format { get; }

Property Value

AsioSampleType

Frames

Number of audio frames represented by Bytes.

public int Frames { get; }

Property Value

int