Table of Contents

Class AsioFloatToNativeConverter

Namespace
NAudio.Wave.Asio
Assembly
NAudio.Asio.dll

Converts a single channel of normalized float samples in [-1.0, +1.0] into the driver's native ASIO sample format. The mirror of AsioNativeToFloatConverter; used by the duplex output path of AsioDevice.

public static class AsioFloatToNativeConverter
Inheritance
AsioFloatToNativeConverter
Inherited Members

Remarks

Supported native formats are Int16LSB, Int24LSB, Int32LSB, and Float32LSB. Float inputs outside [-1.0, +1.0] are clamped to the format's full-scale value to avoid integer wrap.

Methods

Select(AsioSampleType)

Returns a converter for the given native ASIO sample type, or throws NotSupportedException if the format is not supported by the new AsioDevice API.

public static AsioFloatToNativeConverter.ConverterFn Select(AsioSampleType nativeFormat)

Parameters

nativeFormat AsioSampleType

Returns

AsioFloatToNativeConverter.ConverterFn