NAudio.Asio 3.4.0-preview.1
NAudio.Asio
ASIO driver support for NAudio. Targets net9.0 and is Windows-only at runtime (guarded by [SupportedOSPlatform("windows")]), so it can be referenced from a plain netX.0 project as well as a netX.0-windows one. It is Native AOT compatible.
What's included
AsioOut— low-latency playback and/or recording through any installed ASIO driver- ASIO driver enumeration (
AsioOut.GetDriverNames()) - Channel routing, per-channel input metering, and access to the driver's control panel
- Interop types for building your own ASIO host code
When to use it
ASIO is the right choice when you need very low round-trip latency — typical in pro-audio, virtual instruments, and multi-channel recording scenarios — and the user has a working ASIO driver installed (manufacturer-supplied, ASIO4ALL, FlexASIO, etc.). For general-purpose playback/capture prefer NAudio.Wasapi or NAudio.WinMM.
See the NAudio documentation site for tutorials and the full API reference, or the GitHub repository for full documentation and tutorials, including AsioPlayback.md and AsioRecording.md.
License
MIT. ASIO is a trademark of Steinberg Media Technologies GmbH — this package is a driver-consumer only; you are responsible for any agreement required to redistribute the ASIO SDK in your own shipping product.
Showing the top 20 packages that depend on NAudio.Asio.
| Packages | Downloads |
|---|---|
|
NAudio
NAudio, an audio library for .NET
|
24 |
|
NAudio
NAudio, an audio library for .NET
|
23 |
|
NAudio
NAudio, an audio library for .NET
|
21 |
|
NAudio
NAudio, an audio library for .NET
|
20 |
|
NAudio
NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, with platform-specific backends auto-selected by target framework.
|
20 |
|
NAudio
NAudio, an audio library for .NET
|
19 |
|
NAudio
NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, with platform-specific backends auto-selected by target framework.
|
19 |
|
NAudio
NAudio, an audio library for .NET
|
18 |
|
NAudio
NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, with platform-specific backends auto-selected by target framework.
|
18 |
|
NAudio
NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, with platform-specific backends auto-selected by target framework.
|
17 |
|
NAudio
NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, with platform-specific backends auto-selected by target framework.
|
15 |
|
NAudio
NAudio, an audio library for .NET
|
14 |
- Hardened file parsers against malformed input: SoundFont files with chunk sizes past the end of the file, or out-of-range/out-of-order preset, instrument, bag, generator or sample indices now throw
InvalidDataExceptioninstead of attempting multi-GB allocations or throwingIndexOutOfRangeException/OverflowException/ArgumentException; WAV cue chunks with a corrupt cue-point count no longer over-allocate or throw; an MP3 whose first frame is too small for the Xing/Info fields it flags is treated as having no Xing header instead of throwing from theMp3FileReaderconstructor (#1502) SoundFontSamplerskips SoundFont regions with a zero (or out-of-range) sample rate instead of throwing on every note-on (#1502)MidiFilenow pairs note offs with note ons in constant time, so files with many held notes no longer load in quadratic time (#1502)WaveInBuffer,WaveOutBufferandMidiInno longer free buffers the driver still owns when unprepare reports they are still in use, andMidiInbounds sysex reads by the buffer length;Vst3Moduleloads plug-in binaries by full path (#1502)- Breaking: SFZ
#includeandsample=paths that are absolute or UNC/network paths (e.g.\\server\share\x.wav, which on Windows can leak credentials) are now refused; relative paths, including..\Samples\..., still work.FileSfzIncludeResolverandFileSfzSampleLoadergain arootDirectoryconstructor argument to sandbox untrusted SFZ files to a directory, and the shared rules are exposed asSfzFilePath.Resolve.SfzParsernow limits#includecount and#define/#includeexpansion size, and include files are capped at 16 MB (#1501) - Fixed native buffer overruns and use-after-free bugs:
WasapiOutcould copy past the WASAPI render buffer if anIWaveProviderover-reported its read count; DMOMediaBuffer.Lengthaccepted values larger than the buffer;MediaObject.GetInputType/GetOutputType/GetOutputCurrentTypereturned media types pointing at freed memory (GetWaveFormat()on them now throwsInvalidOperationException);Vst3Pluginoverflowed its native buffers for a hugemaxBlockSize; macOSCoreAudioPlayercould write past the HAL buffer list when the device's stream count shrank;MediaFoundationReadercouldPropVariantClearuninitialised memory for media without a duration (#1501) - macOS wrappers (preview): Fixed Extended Audio File Services reader/writer settings contract to be more accurate after the nullable change landed in #1486. New APIs in the
AudioFileLibraryInformationclass were also added. (#1500) - Breaking:
WaveFormat.FromFormatChunk(and soWaveFileReader.WaveFormat,AudioFileReaderand anything else reading a WAV fmt chunk) now returns the most specific format type instead of always returning aWaveFormatExtraData— aWaveFormatExtensible,AdpcmWaveFormat,Gsm610WaveFormatorMp3WaveFormatwhere the encoding and extra data allow, a plainWaveFormatwhere there is no extra data, and aWaveFormatExtraDataonly for an encoding with no dedicated subclass. This is the same choiceWaveFormat.MarshalFromPtrmakes, so a format read from a file and the same format read from a native pointer now come back as the same type. Code casting a reader'sWaveFormattoWaveFormatExtraData, or unpacking aSubFormatGUID out of itsExtraData, should pattern-match onWaveFormatExtensible(or callAsStandardWaveFormat()) instead (#1497) WaveFormat.MarshalFromPtrnow decodes a WAVE_FORMAT_MPEGLAYER3 block into anMp3WaveFormatrather than aWaveFormatExtraDatawhen its cbSize accounts for the 12 MPEGLAYER3WAVEFORMAT bytes (#1497)- A
WaveFormatsubclass decoded from a format block now reports theExtraSizeitsSerializeactually writes, so a block whose cbSize over-reported the extension (drivers pad it, and a fmt chunk can be padded too) no longer round-trips into a fmt chunk shorter than the cbSize it advertises (#1497) - Added
BufferedWaveProvider.CompleteAdding()andIsAddingCompleted, so a producer can end the stream:Readdrains the buffer, returns one unpadded short read even withReadFully, then 0. AddedUnderrunSilenceBytes,DiscardedBytesandResetCounters()to show silence inserted on underrun and audio dropped on overflow (#1492) - Added
MixingSampleProvider.CompleteAdding()andIsAddingCompleted, so aReadFullymixer ends once its current inputs have ended;AddMixerInputafter it throwsInvalidOperationException(#1492) WdlResamplingSampleProvidernow defaults to sinc resampling - a newWdlResamplerQualityconstructor argument selects the algorithm, and the default is nowSinc64(64-tap windowed sinc) instead of linear interpolation with IIR filtering, which lost about 2 dB at 10 kHz and 20 dB at 18 kHz and let aliasing through. This is a behaviour change: output samples differ, CPU use is a little higher and about 0.8 ms of latency is added. PassWdlResamplerQuality.Linearto keep the old output exactly. See Resampling (#1491)- Added
WdlResamplingSampleProvider.HoldBackOnShortReadsfor sources that return short reads mid-stream (e.g.BufferedWaveProviderwithReadFullyoff): in sinc mode it holds back the last few output samples of a short read until their input arrives, instead of computing them from silence.WdlResampler.ResampleOutgains a matching overload with aflushargument (#1491) NAudio.Asiois now Native AOT compatible. The driver binding no longer uses reflection or runtime marshalling: the IASIO vtable is bound with typed function pointers, and channel info, clock sources and callbacks go through blittable structs. The public API is unchanged. A new test drives the binding against an in-process fake driver, and CI runs it as a Native AOT executable. Also fixedAsioDriver.DisposeBuffersfreeing its callback table twice when called again, e.g. byReleaseDriverafter a failedAsioDevice.Reinitialize(#1487)- New package: NAudio.Nam - native C# inference for Neural Amp Modeler captures. Loads A2 (A2-Lite and A2-Full), A1 WaveNet and LSTM
.nammodels and runs them as an allocation-freeNamEffect(zero latency at the model's sample rate, with built-in sinc resampling at other rates), or throughNamProcessorfor ASIO callbacks. Output matches NeuralAmpModelerCore to within float rounding. SeeDocs/NeuralAmpModeler.md(#1498) - Added
CabinetEffect, a zero-latency guitar/bass cabinet simulator: it loads an impulse response from a WAV file at any sample rate, resamples it to the stream rate, and optionally trims its silent tail and normalises its level (#1498) - Added a zero-latency mode to
PartitionedConvolver(new constructor overload) andConvolutionReverbEffect(ZeroLatency), which applies the first partition of the impulse response directly so there is no partition delay (#1498) PartitionedConvolver(and soConvolutionReverbEffect) is about 2-3x faster: the frequency-domain multiply-accumulate is now vectorised (#1498)- Fixed
WdlResampler(and soWdlResamplingSampleProvider) allocating a new input buffer on most calls when the block size varied; the buffer now only grows, so steady-state resampling is allocation-free in both output-driven and input-driven mode (#1498)
.NET 9.0
- NAudio.Core (>= 3.4.0-preview.1)
| Version | Downloads | Last updated |
|---|---|---|
| 3.4.0-preview.1 | 7 | 10/24/2026 |
| 3.3.0 | 7 | 10/19/2026 |
| 3.3.0-preview.1 | 8 | 10/18/2026 |
| 3.2.0 | 7 | 10/16/2026 |
| 3.2.0-preview.1 | 8 | 10/13/2026 |
| 3.1.1-preview.2 | 14 | 09/22/2026 |
| 3.1.1-preview.1 | 15 | 09/10/2026 |
| 3.1.0 | 12 | 09/07/2026 |
| 3.1.0-preview.2 | 15 | 09/05/2026 |
| 3.1.0-preview.1 | 16 | 09/04/2026 |
| 3.0.2-preview.2 | 17 | 08/30/2026 |
| 3.0.2-preview.1 | 15 | 08/20/2026 |
| 3.0.1 | 17 | 08/19/2026 |
| 3.0.1-preview.1 | 15 | 08/19/2026 |
| 3.0.0 | 21 | 08/16/2026 |
| 3.0.0-preview.20 | 22 | 08/08/2026 |
| 3.0.0-preview.19 | 24 | 08/01/2026 |
| 3.0.0-preview.18 | 22 | 07/18/2026 |
| 3.0.0-preview.17 | 26 | 07/13/2026 |
| 3.0.0-preview.16 | 24 | 07/01/2026 |
| 3.0.0-preview.15 | 23 | 07/01/2026 |
| 3.0.0-preview.14 | 24 | 06/26/2026 |
| 3.0.0-preview.10 | 24 | 06/10/2026 |
| 3.0.0-preview.9 | 23 | 05/30/2026 |
| 3.0.0-preview.8 | 23 | 05/30/2026 |
| 3.0.0-preview.7 | 25 | 05/30/2026 |
| 3.0.0-preview.6 | 16 | 05/30/2026 |
| 3.0.0-preview.5 | 21 | 05/30/2026 |
| 3.0.0-preview.4 | 20 | 05/30/2026 |
| 3.0.0-preview.3 | 22 | 05/30/2026 |
| 3.0.0-preview.2 | 25 | 05/30/2026 |
| 2.4.0 | 15 | 08/30/2026 |
| 2.3.0 | 22 | 05/30/2026 |
| 2.2.1 | 20 | 05/30/2026 |
| 2.2.0 | 21 | 05/30/2026 |
| 2.1.0 | 23 | 05/30/2026 |
| 2.1.0-beta.1 | 22 | 05/30/2026 |
| 2.0.0 | 24 | 05/30/2026 |
| 2.0.0-beta2 | 21 | 05/30/2026 |
| 2.0.0-beta1 | 20 | 05/30/2026 |