NAudio.Asio 3.0.0-preview.10
NAudio.Asio
ASIO driver support for NAudio. Windows-only (net9.0-windows).
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 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
|
15 |
|
NAudio
NAudio, an audio library for .NET
|
14 |
|
NAudio
NAudio, an audio library for .NET
|
13 |
|
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.
|
13 |
|
NAudio
NAudio, an audio library for .NET
|
11 |
|
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.
|
11 |
|
NAudio
NAudio, an audio library for .NET
|
10 |
|
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.
|
10 |
|
NAudio
NAudio, an audio library for .NET
|
9 |
|
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.
|
8 |
|
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.
|
1 |
Breaking changes
AudioVolumeLevelmoved fromNAudio.Wasapi.CoreAudioApitoNAudio.CoreAudioApi— it now lives in the same namespace as the rest of the WASAPI/Core Audio API (MMDevice,Part,DeviceTopology, etc.) that it's returned from. The parallelNAudio.Wasapi.CoreAudioApinamespace (which otherwise held only internal COM-activation plumbing) is goneDmoMp3FrameDecompressormoved fromNAudio.FileFormats.Mp3toNAudio.Dmo— it's a DMO wrapper and now shares the namespace of theNAudio.Dmoassembly it ships in (alongsideDmoEffectWaveProvider,ResamplerDmoStream, etc.)WaveFileChunkReaderis nowinternal(and moved fromNAudio.FileFormats.WavtoNAudio.Wave) — it was internal plumbing forWaveFileReader. Read custom RIFF chunks viaWaveFileReader.Chunks(WaveChunks/RiffChunk/IWaveChunkInterpreter<T>) insteadCaptureStateenum moved fromNAudio.CoreAudioApitoNAudio.Wave— it's a backend-agnostic capture-state type used byWaveIn,WasapiCapture, andWasapiRecorder, and was only inNAudio.CoreAudioApifor historical reasons. Code that named the type viausing NAudio.CoreAudioApi;now needsusing NAudio.Wave;IWaveProvider.Readsignature changed fromRead(byte[], int, int)toRead(Span<byte>). Existing callers withbyte[]migrate viasource.Read(buffer.AsSpan(offset, count)); implementations overrideRead(Span<byte>)ISampleProvider.Readsignature changed fromRead(float[], int, int)toRead(Span<float>)(same migration pattern)MidiIn,MidiOut,MidiInCapabilities, andMidiOutCapabilitiesmoved fromNAudio.MiditoNAudio.WinMM— allwinmm.dllinterop now lives in one assemblyMmResult,MmException, andManufacturersmoved fromNAudio.CoretoNAudio.WinMMDirectSoundOutmoved fromNAudio.CoretoNAudio.Dmo(DirectSound has always been Windows-only)- New
NAudio.Dmopackage. DMO effects (echo, chorus, reverb, etc.), the DMO MP3 decoder (DmoMp3FrameDecompressor), the DMO resampler (ResamplerDmoStream), andDirectSoundOutcarved out ofNAudio.Wasapi. Namespaces preserved (NAudio.Dmo,NAudio.Dmo.Effect,NAudio.WaveforDirectSoundOut). Meta-package consumers see no change —NAudio.Dmocomes in transitively. DirectNAudio.Wasapiconsumers who use the DMO/DirectSound types now need an explicit<PackageReference Include="NAudio.Dmo" />. NAudio.Midiis now cross-platform — itsnet9.0target no longer P/Invokeswinmm.dllMidiInMessageEventArgs.TimestampandMidiInSysexMessageEventArgs.Timestampare nowTimeSpan(previouslyintmilliseconds) — preserves full WinRT 100 ns resolution on the WinRT backendMidiIn.CreateSysexBuffersremoved —MidiInnow allocates sysex receive buffers automatically insideStart()WasapiOut,WasapiCapture, andWasapiLoopbackCaptureare now[Obsolete]in favour of the newWasapiPlayer/WasapiRecorderAPIs (the legacy types still ship and continue to work)WasapiOut's embedded DMO resampler removed. Exclusive-mode callers whose source format is not natively supported now get aNotSupportedExceptionfromInitinstead of silent on-the-fly resampling. Resample upstream (e.g. withMediaFoundationResampler), use shared mode (which still auto-converts viaAutoConvertPcm), or switch toWasapiPlayerBuilder. RemovesNAudio.Wasapi's only intra-assembly dependency on DMO.WaveOutandWaveInnow default to event-driven callbacks; the legacy window-based variants are renamedWaveOutWindow/WaveInWindowand live inNAudio.WinFormsWaveInEventArgsnow fires one event per WASAPI packet (previously batched). A newBufferSpanproperty exposes the data without copying through the existingBufferbyte array- Several
Mf*Media Foundation wrapper types are nowinternal— onlyMfActivateandMediaTyperemain public BufferedWaveProviderbuffer duration is now set in the constructor (default 5 seconds);BufferLengthandBufferDurationare read-onlyWaveBufferis deprecated — useMemoryMarshal.CastinsteadMMDevice.AudioClientis[Obsolete]because it created a new instance per access; useMMDevice.CreateAudioClient()PropertyStore[int]now resolvesPropVariantvalues safely; the indexer that returned the rawPropVariantis[Obsolete]- Minimum target framework is now
net9.0(previously supported legacy .NET Framework and .NET Standard 2.0) CueWaveFileReaderremoved - usenew WaveFileReader(...).Chunks.ReadCueList()to get aCueListStreamMediaFoundationReadernow throwsArgumentExceptionfor non-readable or non-seekable streams instead of failing later (#1288)- Corrected
HResult.E_INVALIDARGto0x80070057(was the legacy0x80000003) and deprecatedHResult.MAKE_HRESULTin favour ofMakeHResult(#1288) SimpleCompressorEffect(formerlySimpleCompressorStream) removed, along with the internal ChunkWareSimpleCompressor/SimpleGate/EnvelopeDetector— superseded by the newNAudio.Effectsframework; high-quality dynamics effects follow in a later NAudio 3 phaseImpulseResponseConvolutionremoved — it was an unusable O(n²) time-domain stub; FFT-based convolution will replace it in a later NAudio 3 phaseNAudio.Extras.EqualizerandNAudio.Extras.EqualizerBandremoved — replaced byNAudio.Effects.Equalizer/EqualizerBandinNAudio.Core. The new EQ is per-channel, click-free when retuned, and adds shelves/pass/notch/band-pass/all-pass shapes. Band API changed:Bandwidth/Gain→Q/GainDb(orShelfSlope), and the equaliser is anIAudioEffect(wrap withEffectSampleProviderinstead of passing a source to the constructor)
New features
- NAudio.SoundFile: new cross-platform
SoundFileReader/SoundFileWriterwrapping libsndfile — reads and writes WAV/AIFF/FLAC/Ogg-Vorbis/Opus/MP3 on Linux, macOS and Windows (the first cross-platform FLAC/Vorbis/Opus encoder in NAudio).SoundFileReaderis aWaveStreamandISampleProvider; both reader and writer also work over aSystem.IO.Stream. Requires a system libsndfile;SoundFileCapabilitiesreports which codecs the build supports (#1289) - WASAPI: new high-level
WasapiPlayerandWasapiRecorderclasses, built viaWasapiPlayerBuilder/WasapiRecorderBuilder. AddsIAudioClient3low-latency support, MMCSS thread priority,IAsyncDisposable, zero-copy buffer access, and process-specific loopback viaWasapiRecorderBuilder.WithProcessLoopback() - ASIO: new
AsioDeviceclass replacingAsioOutas the primary ASIO interface. Adds explicitInitPlayback/InitRecording/InitDuplexmodes, non-contiguous channel selection, per-channelSpan<float>callbacks,Reinitialize()for driver-reset recovery, and per-buffer timing fields (SamplePosition,SystemTimeNanoseconds,Speed, SMPTETimeCode) - ASIO events:
LatenciesChangedandResyncOccurredsurfaced separately; buffer-size changes routed throughDriverResetRequest - Media Foundation:
MediaFoundationEncoder.EncodeToFlacfor lossless FLAC output. The FLAC/ALAC selector now falls back correctly on rate + channels - WinForms:
WaveOutWindowandWaveInWindowavailable as window-callback variants of the modernised event-drivenWaveOut/WaveIn - DSP: new
FftProcessorwith real-input specialisation and precomputed windowing - WAV chunks: new
IWaveChunkInterpreter<T>extension point, with built-in interpreters for cue lists, BWFbext(v1 and v2), and LIST/INFO metadata. RF64 promotion is now an explicitWaveFileWriterOption Span<T>overloads: added onBiQuadFilter.Transform,ALawDecoder.Decode,MuLawDecoder.Decode, andIMp3FrameDecompressor.DecompressFrame(default interface method preserves backward compatibility withNLayerand other third-party decoders)- MIDI: new
WinRTMidiIn/WinRTMidiOutclasses inNAudio.Wasapibacked byWindows.Devices.Midi, withMidiMessageConverterfor interop with the WinRT MIDI types. NewIMidiInput/IMidiOutputinterfaces (with aSend(MidiEvent)extension) let callers write backend-agnostic code; legacyMidiIn/MidiOutalso implement them - MIDI:
MidiFilenow reads RIFF-RMID (.rmi) files by unwrapping the RIFF container and parsing the embedded standard MIDI file (#1236) - ALSA (Linux): new
NAudio.Alsapackage —AlsaOut(IWavePlayer) andAlsaIn(IWaveIn) backed bylibasound, plusAlsaDeviceEnumerator. Linux-only ([SupportedOSPlatform("linux")], AOT-compatible[LibraryImport]); reference it explicitly, it is not part of theNAudiometa-package (#1182) - Effects: new cross-platform
NAudio.Effectsframework —IAudioEffect, anAudioEffectbase with click-free bypass and dry/wet mix,EffectSampleProvider, andEffectChain. The chain is editable while it plays (Add/Insert/RemoveAt/Movepublish a new chain atomically on the next block without resetting the other effects;Readstays lock-free) and exposesReset()to clear all effect state (delay lines, filter history, reverb tails) for reuse after a seek - Effects: an optional
IParameterized/EffectParametermodel lets effects expose their controls (continuous/toggle/choice/meter) as a uniform list for generic UIs, presets and automation without changingIAudioEffect; live edits are marshalled to the audio thread by a lock-freeParameterDispatchQueue/IParameterDispatchso parameter writes never race the realtime callback - Effects — EQ & filtering: a per-channel multi-band
Equalizer(peaking/shelf/pass/notch/band-pass/all-pass, click-free retune), a 10/31-bandGraphicEqualizer,MonoMakerEffect(bass-mono) andDcBlockerEffect - Effects — level & stereo:
GainEffect,PanEffectandStereoWidthEffect - Effects — dynamics:
CompressorEffect(soft knee, peak/RMS detector, channel-linked),LimiterEffect(brick-wall with look-ahead and optional true-peak/inter-sample detection),GateEffect(gate/downward-expander with hysteresis and hold),TransientShaperEffect(dual-envelope attack/sustain shaping), split-bandDeEsserEffect, andMultibandCompressorEffect(configurable LR4 bands, per-band threshold/ratio/attack/release/make-up); all expose liveGainReductionDbfor metering - Effects — saturation & lo-fi:
SaturationEffect(tanh/cubic/arctan/hard-clip wave-shaper with drive, output trim and optional 2×/4× oversampling) andBitCrusherEffect(bit-depth plus target-sample-rate reduction, e.g. 22.05/16/8 kHz, with an optional smoothing low-pass) - Effects — delay & modulation:
DelayEffect(tempo-syncable with read-onlyEffectiveDelayMs, feedback damping, ping-pong),ChorusEffect,FlangerEffect,PhaserEffectandTremoloEffect(with auto-pan) - Effects — reverb:
ConvolutionReverbEffect(partitioned FFT convolution, mono or per-channel IR, reports latency, replacing the removedImpulseResponseConvolution),ReverbEffect(lightweight Freeverb-style Schroeder–Moorer) andFdnReverbEffect(modulated feedback-delay network with RT60, size, damping and width) - Effects — pitch:
PitchShiftEffect— framework-integrated per-channel phase-vocoder pitch shifting with semitone control and FFT latency reporting - Effects — voice comms:
AutomaticGainControlEffect(VAD-gated leveller),NoiseSuppressionEffect(STFT spectral suppression) andComfortNoiseEffect - DSP: new reusable building blocks underpinning the effects suite —
EnvelopeFollower,ParameterSmoother,DelayLine,CrossfadingBiQuadFilter,Lfo(withNoteDivision/TempoTimetempo helpers),Oversampler,LinkwitzRileyCrossover,PartitionedConvolver,VoiceActivityDetector, plusBiQuadFilter.ResetState() - Docs: added an Audio Effects guide (
Docs/AudioEffects.md) covering the suite, chains, dry/wet & bypass, the parameter model and writing your own effect - Docs: added
WasapiPlayerandWasapiRecordertutorials; the legacyWasapiOutandWasapiLoopbackCapturedocs now point to them - Core:
NAudio.Utils.HResultgained constants for common COM/storage HRESULTs plus anIsErrorhelper (#1288) - Sample providers: new
ChannelMixerSampleProviderremixes a source's channels through an arbitrary mixing matrix (downmix, upmix, weighted routing), with ready-made matrices inChannelMixMatrix(mono↔stereo, stereo→5.1, etc.). Thanks to @antiduh (#982)
Demo apps and Test Harnesses
- WPF demo: new Convolution Reverb module — offline test bench for
ConvolutionReverbEffect: pick an input file and a folder of impulse responses, render single-IR or batch-all, with IR auto-resample to the input rate and peak-normalisation to -3 dBFS, latency-compensated output, full tail flush, and per-render Nx-real-time + tail-length reporting. Renders land in a temp folder with Play/Delete/Open-folder commands - WPF demo: new Realtime Effects module — full-duplex
AsioDevicemonitor (driver + mono/stereo input) with feedback safety (starts muted, headphone warning, runaway auto-mute), an add/remove/reorder effect-chain editor with auto-generated parameter panels (knobs/toggles/choices/meters + Bypass/Mix) driven byIParameterized, and WAV-file playback / offline render through the chain. Live parameter edits are marshalled to the audio thread viaParameterDispatchQueue, newly added effects are pre-warmed off the audio thread, and ASIO monitoring and file playback/render are mutually exclusive (the chain is shared). An input-channel offset selector allows mono/stereo capture from any base channel (e.g. a guitar on input 2, or a stereo pair on 5+6). Three demo-only effects (SevenBandEqEffect,FilterEffect,ThreeBandCompressorEffect) composed from the toolkit'sEqualizer/CrossfadingBiQuadFilter/MultibandCompressorEffectprimitives are wired into the harness — they smoke-test the underlying DSP and show how to build fixed-parameter effects on top of the dynamic-band primitives - NAudioConsoleTest: new CLI test harness for driving various NAudio features without the need for GUI. Includes
run-batchfor JSON-driven test plans anddiagnosefor capturing a structured host audio snapshot (OS, ASIO drivers, WASAPI/WinMM/DirectSound devices, NAudio assembly versions). - WPF demos: spectrum analyser rewritten with corrected dB formula (20·log₁₀), log-frequency mapping, real-input full-scale calibration, bars instead of polylines, peak-decay markers, and per-band smoothing. New
LiveWaveformControlwith configurable render styles, vertical scaling, and fill-between rendering - WAV recording demo: added loopback support and a multi-API device combo with provenance embedding
- MIDI In demo: Refresh button for hot-plugged devices, device combos disabled while in use, test MIDI Out plays on channel 1 (was 2), Filter Auto-Sensing on by default, stopping test output now sends note-off so notes don't hang, and cleaner panel disposal
- MfStressTest: Reliability tests for the new Media Foundation interop implementation in NAudio 3.
- Replaced vendored NSpeex (deprecated) with Opus (Concentus) in the network chat demo; added round-trip unit tests
Performance
- Vectorised mix-add and volume kernels via
System.Numerics.Tensors— significantly faster on AVX2 hardware for typical buffer sizes - Eliminated per-
Readallocations inSmbPitchShiftingSampleProvider WaveStream.Read(Span<byte>)overridden directly on every concrete reader (no intermediate byte-array copy)WasapiCapturecapture path is now zero-copy via the native WASAPI buffer spanBiQuadFilterstate and coefficient fields hoisted to locals in batch loops for register retentionMp3FileReadernow builds its table-of-contents lazily on first seek instead of eagerly during construction; thePositionsetter no longer blocks; rapid scrub seeks debounce and silence output- Eliminated per-
Readallocations inResamplerDmoStreamandDmoMp3FrameDecompressor(cached input buffer and output-buffer array) (#971)
Reliability and bug fixes
AudioSessionControl: now supports multiple registered event clients.RegisterEventClientno longer leaks a prior registration, andUnRegisterEventClientnow honours itseventClientargument instead of unregistering whichever handler happened to be stored (#1263)CueListInterpreter: fixed returning null for WAV files with cue points but no labels (e.g. unnamed Wavosaur markers); cues are now returned with empty labels (#549)WaveViewer: fixed waveform rendering upside-down (#801, #818)WaveViewer: now renders correctly for any source format — the legacy renderer hard-coded a 16-bit PCM byte walk, so feeding it anAudioFileReader(or any non-16-bitWaveStream) produced a garbled waveform. Rendering now goes throughToSampleProvider()and operates on floats (#564)AcmInterop: serialised allmsacm32P/Invokes process-wide via a reentrant lock — fixes process-killing access violations under concurrent ACM accessAcmStream: fixed double-close in finalizer by zeroing the handle field before closeMediaFoundationReader: informational source-reader flags (STREAMTICK,NEWSTREAM,NativeMediaTypeChanged,AllEffectsRemoved) are now non-fatal instead of aborting readsMediaFoundationReader: cleanupfinallyblock onReadno longer leaks COM objects whenUnlockfails — the hresult is captured and thrown only after both the buffer and the sample have been freed.MediaFoundationReader.Reposition: fixed using a stale field instead of the parameter (seeks would default to stream start)MediaFoundationEncoder: unselectedMediaTypeinstances are now disposed to prevent finalizer-thread COM ref leaksMediaFoundationEncoder: In theConvertOneBuffermethod, there was a small possibility that if the sample creation was failed, the previously allocated buffer COM object would have been leaked.StreamMediaFoundationReaderand stream-basedMediaFoundationEncoderencoding now use a direct managedIMFByteStreamwrapper instead of theIStream→IMFByteStreamshim, improving reliability of reading and encoding audio through .NET streams (#1288)Mp3FileReader: fixed false sample-rate-change errors near end of fileWaveFormat.Serialize: PCM formats now write the canonical 16-bytefmtchunk (nocbSizefield) instead of 18 bytes, matching thePCMWAVEFORMATlayout (#934, #1098)- MP3 frame parsing: more robust against false frame detections from album art and trailing metadata
MidiFile: preserved running-status across meta events (fixes "Read too far" errors when meta events interrupt running-status sequences)WaveStream.CurrentTimesetter: now lands on a block boundary, preventing garbage audio on seek in custom readersBlockAlignReductionStream.Positionsetter: now validates the incoming value instead of the stale current position, so a block-aligned seek after an arbitrary-length read no longer wrongly throws "Position must be block aligned" (#368)IconExtractor.Extract: now guards against null icon handles fromExtractIconExDirectSoundOut.InitializeDirectSound: wrapped notification setup in try/finally to prevent COM ref leak onSetNotificationPositionsfailure- ASIO: implemented missing
Asio64Bitconversions (Int24LSB and Float32LSB output sample types) - ASIO: fixed byte-order bug in
AsioDriver.GetSamplePositionforAsio64Bitreassembly WdlResampler: backported three upstream Cockos WDL bug fixes (latency calculation,ResampleOutclamping, Blackman-Harris window correction)MediaBufferLease: hardened against out-of-order disposal- Added finalizers to DMO
MediaBufferand theMf*wrappers that hold (RCW, IntPtr) pairs to prevent COM ref leaks WaveFileChunkReader: fixedArgumentExceptionparsing WAV files whose odd-length chunks are followed by non-UTF-8 bytes — the word-alignment pad-byte check no longer decodes viaBinaryReader.PeekChar(), and is now guarded against end-of-stream (#959)- Clarified
BiQuadFilterqparameter docs (#1264) - Removed dead
naudio.codeplex.comlinks from README, MixDiff Help menu, and source comments (CodePlex was shut down by Microsoft in 2017) (#985) AudioClient.Dispose: made idempotent and safe against concurrent/re-entrant disposal — fixes an intermittentNullReferenceExceptionfrom the COM interop layer when a WASAPI capture or playback wrapper is disposed more than once (#1183)WaveFileReader/AiffFileReader: malformed headers that declaredBlockAlign=0now throwInvalidDataExceptionfrom the constructor instead ofDivideByZeroExceptionfrom thePositionsetter (#1254)AiffFileReader.Read: truncatedSSNDchunks no longer triggerIndexOutOfRangeExceptionin the byte-swap loop — the read count is rounded down to a whole block (#1254)AudioEndpointVolume.OnVolumeNotification: fixed per-channel volume notification returning channel 0's volume for every channel — the read pointer was not advanced per channel (#351)MmException: error messages now append a human-readable description of theMmResultviawaveOutGetErrorText, e.g.NoDriver calling waveOutSetVolume: No device driver is present(#1192)Id3v2Tag.ReadTag: no longer throws and catches aFormatExceptionfor MP3 streams without an ID3v2 tag — the header check now returnsnulldirectly (#265)WaveFileReader: fixedArgumentExceptionreading WAV files whosefmtchunk declares more extra (cbSize) bytes than the fixed 100-byte buffer holds — the surplus is now discarded instead of throwing (#482)MediaFoundationTransform: cleanupfinallyblocks no longer leak COM objects whenUnlock/RemoveAllBuffersfails — hresults are captured and thrown only after every buffer/sample has been released (#1293)ResamplerDmoStream: fixed infinite loop onReadafter settingPosition, and the loss of the resampler kernel's tail samples (~32 at the default quality of 30) when the input reaches end-of-stream. The DMO is now drained viaProcessOutputafterDiscontinuity— on seek the drained bytes are discarded so playback resumes from the new position, on EOS they're returned to the caller and subsequent reads return 0 cleanly (#607, #608)- Named the background threads created by
DirectSoundOut,WasapiOut,WasapiCapture,WasapiPlayer, andWasapiRecorderso they show meaningful names in debuggers and profilers (#557)
Modernisation (Native AOT, source-generated COM)
NAudio.Core,NAudio.Midi, andNAudio.Wasapiare nowIsAotCompatible=true. AOT compatibility is enforced at build-time byNAudioAotSmokeTest, which fails CI on any new trim or AOT analyzer warning- Most COM interop migrated from
[ComImport]to[GeneratedComInterface]/ComWrappers. Affected interfaces include the WASAPI / Core Audio activation chain (IActivateAudioInterfaceCompletionHandler,IMMNotificationClient,IAudioSessionNotification,IAudioSessionEvents,IAudioEndpointVolumeCallback,IAgileObject,IPropertyStore), the Media Foundation cascade, the DMO interfaces, DirectSound, and theComStreamCCW (now source-generatedIStream) Connector.ConnectTo: fixed a source-generated COM leftover — it now projects the target connector viaComWrappersinstead ofMarshal.GetComInterfaceForObject, which is unsupported for[GeneratedComInterface]types and would fail at runtime (SYSLIB1099) (#1311)- DirectSound P/Invokes migrated to
[LibraryImport]with[UnmanagedCallersOnly]thunks;BufferDescriptionandBufferCapsconverted from class to struct AcmDriverported from legacyNativeMethodstoNativeLibrary- Most
MediaFoundationInteropblittable P/Invokes migrated to[LibraryImport]
Packaging and dependencies
- Each NAudio package now ships its own README in the NuGet payload
- Each NAudio package now embeds an SPDX 2.2 Software Bill of Materials (SBOM) under
/_manifest/spdx_2.2/in its.nupkg, generated at pack time viaMicrosoft.Sbom.Targets - Test project migrated from VSTest to
Microsoft.Testing.Platform NAudioTestssplit intoNAudio.Core.Tests(cross-platform,net10.0) andNAudio.Windows.Tests(Windows-only,net10.0-windows) — eliminates the dual-TFM double-run on Windows CI and lets non-Windows devs run just the cross-platform suiteNAudio.Alsa.TestsandNAudio.SoundFile.Testsnow ignore MTP exit codes 8/9 sodotnet testsucceeds on machines where the suite legitimately runs zero tests (ALSA off-Linux) or self-skips (libsndfile absent)- Migrated to the modern
.slnxsolution format - Renamed
license.txttoLICENSEfor GitHub license detection; refreshed copyright year to 2008–2026 - Added per-package
<Description>metadata to every shipping NAudio NuGet package so each clearly identifies itself as part of the NAudio family - Added a DocFX documentation site (tutorials + API reference) published to GitHub Pages, built automatically from
Docs/and the source XML comments - Fixed the published API reference dropping the cross-platform namespaces (
NAudio.Effects,NAudio.Dsp,NAudio.Codecs,NAudio.SoundFont, etc.) from the navigation — DocFX's two metadata blocks both wrote to the same destination, so the second overwrote the first's table of contents. The projects are now documented from a single metadata block
.NET 9.0
- NAudio.Core (>= 3.0.0-preview.10)
| Version | Downloads | Last updated |
|---|---|---|
| 3.0.0-preview.14 | 0 | 06/25/2026 |
| 3.0.0-preview.10 | 8 | 06/10/2026 |
| 3.0.0-preview.9 | 11 | 05/30/2026 |
| 3.0.0-preview.8 | 9 | 05/30/2026 |
| 3.0.0-preview.7 | 10 | 05/30/2026 |
| 3.0.0-preview.6 | 7 | 05/30/2026 |
| 3.0.0-preview.5 | 11 | 05/30/2026 |
| 3.0.0-preview.4 | 9 | 05/30/2026 |
| 3.0.0-preview.3 | 8 | 05/30/2026 |
| 3.0.0-preview.2 | 9 | 05/30/2026 |
| 2.3.0 | 9 | 05/30/2026 |
| 2.2.1 | 8 | 05/30/2026 |
| 2.2.0 | 7 | 05/30/2026 |
| 2.1.0 | 7 | 05/30/2026 |
| 2.1.0-beta.1 | 9 | 05/30/2026 |
| 2.0.0 | 9 | 05/30/2026 |
| 2.0.0-beta2 | 10 | 05/30/2026 |
| 2.0.0-beta1 | 10 | 05/30/2026 |