All Versions
31
Latest Version
Avg Release Cycle
246 days
Latest Release
3434 days ago

Changelog History
Page 2

  • v1.7.3 Changes

    March 05, 2015
    • ⚑️ WaveFileWriter.Flush now updates the WAV headers, resulting in a playable file without having to call Dispose
    • SampleToWaveProvider24 class added for conversion to 24 bit
    • Audio Session APIs added to Core Audio API (thanks KvanTTT, milligan22963)
    • πŸ‘ SimpleAudioVolume support in Core Audio API
    • WasapiCapture can use events instead of Thread.Sleep like WasapiOut (thanks davidwood)
    • 🍱 NAudio has a logo! Can be found in the Assets folder of the Win 8 Demo
    • ⚑️ WindowsRT assembly updated with support for additional core audio APIs (AudioSessionNotification, AudioStreamVolume, SessionCollection)
    • Volume mixer demo added to NAudioDemo
    • πŸ›  Various bugfixes and enhancements (see commit history for full log)
      • MMDeviceEnumerator.HasDefaultAudioEndpoint to determine if there is a default endpoint
      • AudioSessionControl no longer throws exceptions with Windows Vista
      • Expose IAudioStreamVolume from WsapiOut, and AudioClient.
      • Better handling 0 length Mp3 files
      • Word aligned Cue chunks
      • WaveOutEvent can set device volume
      • Better handling of WAVEFORMATEXTENSIBLE for WasapiIn
  • v1.7.2 Changes

    November 24, 2014
    • πŸ‘ WaveFileReader and WaveFileWriter supporting data chunk > 2GB
    • πŸ— Working towards making WinRT build pass WACK
    • πŸ‘ WASAPI IAudioClock support
    • MMDeviceEnumerator has Register and UnRegisterEndpointNotificationCallback
    • TempoEvent can be modified
    • πŸ›  Various bugfixes and enhancements (see commit history for full log)
      • BooleanMixerControl bugfix
      • DirectSoundOut fix for end of file
      • WasapiOut WinRT fixes
      • fix for stereo mu and a law
      • fix to MIDIHDR struct
      • WaveOutEvent dispose fix
      • Fixes for sync context issues in ASP.NET
      • Fixed WasapiOut could stop when playing resampled audio
  • v1.7.1 Changes

    April 10, 2014
    • WdlResampler - a fully managed resampler based on the one from CockosWDL
    • AdsrSampleProvider for creating ADSR envelopes
    • πŸ‘Œ Improvements to demo apps
      • MediaFoundationReader
      • 8 band graphic equalizer demo added
    • πŸ”§ More configurable BiQuad filter
    • πŸ›  Various bugfixes and enhancements (see commit history for full log)
      • CurrentTime reporting fixed for mono files in AudioFileReader
      • WaveOut PlaybackState now gets correctly set to Stopped at end of file
      • MediaFoundationReader can raise WaveFormatChanged event
      • WaveOutEvent fixed to be restartafter reaching the end
      • OffsetSampleProvider bugfixes and TimeSpan helper methods
      • Cue markers RIFF chunk writing fixes
      • WaveIn and WaveOutEvent robustness fixes
  • v1.7.0 Changes

    October 29, 2013

    πŸš€ Release announcement

    • 🏁 MediaFoundationReader allows you to play any audio files that Media Foundation can play, which on Windows 7 and above means playback of AAC, MP3, WMA, as well as playing the audio from video files.
    • 🏁 MediaFoundationEncoder allows you to easily encode audio using any Media Foundation Encoders installed on your machine. The WPF Demo application shows this in action, allowing you to encode AAC, MP3 and WMA files in Windows 8.
    • MediaFoundationTransform is a low-level class designed to be inherited from, allowing you to get direct access to Media Foundation Transforms if that’s what you need.
    • MediaFoundationResampler direct access to the Media Foundation Resampler MFT as an IWaveProvider, with the capability to set the quality level.
    • NAudio is now built against .NET 3.5. This allows us to make use of language features such as extension methods, LINQ and Action/Func parameters.
    • πŸ‘€ You can enumerate Media Foundation Transforms to see what’s installed. The WPF Demo Application shows how to do this.
    • πŸ‘€ WasapiCapture supports exclusive mode, and a new WASAPI capture demo has been added to the WPF demo application, allowing you to experiment more easily to see what capture formats your soundcard will support.
    • A new ToSampleProvider extension method on IWaveProvider now makes it trivially easy to to convert any PCM WaveProvider to an ISampleProvider. There is also another extension method allowing an ISampleProvider to be passed directly into any IWavePlayer implementation without the need for converting back to an IWaveProvider first.
    • πŸ‘ WaveFileWriter supports creating a 16 bit WAV file directly from an ISampleProvider with the new CreateWaveFile16static method.
    • IWavePosition interface implemented by several IWavePlayer classes allows greater accuracy of determining exact position of playback. Contribution courtesy of ioctlLR
    • AIFF File Writer (courtesy of Gaiwa)
    • βž• Added the ability to add a local ACM driver allowing you to use ACM codecs without installing them. Use AcmDriver.AddLocalDriver
    • ReadFullyproperty allows you to create never-ending MixingSampleProvider, for use when dynamically adding and removing inputs.
    • WasapiOut now allows setting the playback volume directly on the MMDevice.
    • πŸ‘Œ Support for sending MIDI Sysex messages, thanks to Marcel Schot
    • A new BiQuadFilterfor easy creation of various filter types including high pass, low pass etc
    • A new EnvelopeGeneratorclass for creating ADSR envelopes based on a blog post from Nigel Redmon.
    • πŸ›  Lots of bugfixes (see the commit history for more details). Some highlights include…
      • Fixed a long-standing issue with MP3FileReader incorrectly interpreting some metadata as an MP3 frame then throwing an exception saying the sample rate has changed.
      • WaveFileReader.TryReadFloat works in stereo files
      • Fixed possible memory exception with large buffer sizes for WaveInBuffer and WaveOutBuffer
    • Various code cleanups including removal of use of ApplicationException, and removal of all classes marked as obsolete.
    • πŸš€ Preview Release of WinRT support.The NAudio nuget package now includes a WinRT version of NAudio for Windows 8 store apps. This currently supports basic recording and playback. This should still very much be thought of as a preview release. There are still several parts of NAudio (in particular several of the file readers and writers) that are not accessible, and we may need to replace the MFT Resampler used by WASAPI with a fully managed one, as it might mean that Windows Store certification testing fails.
      • Use WasapiOutRT for playback
      • Use WasapiCaptureRTfor record (thanks to Kassoul for some performance enhancement suggestions)
      • There is a demo application in the NAudio source code showing record and playback
  • v1.6.0 Changes

    October 26, 2012

    πŸš€ Release Announcement

    • WASAPI Loopback Capture allowing you to record what your soundcard is playing (only works on Vista and above)
    • πŸ”§ ASIO Recording ASIO doesn’t quite fit with the IWaveIn model used elsewhere in NAudio, so this is implemented in its own special way, with direct access to buffers or easy access to converted samples for most common ASIO configurations. Read more about it here.
    • MultiplexingWaveProvider and MultiplexingSampleProvider allowing easier handling of multi-channel audio. Read more about it here.
    • FadeInOutSampleProvider simplifying the process of fading audio in and out
    • WaveInEvent for more reliable recording on a background thread
    • 🚚 PlaybackStopped and RecordingStoppedevents now include an exception. This is very useful for cases when USB audio devices are removed during playback or record. Now there is no unhandled exception and you can detect this has happened by looking at the EventArgs. (n.b. I’m not sure if adding a property to an EventArgs is a breaking change – recompile your code against NAudio 1.6 to be safe).
    • MixingWaveProvider32 for cases when you don’t need the overhead of WaveMixerStream. MixingSampleProvider should be preferred going forwards though.
    • OffsetSampleProvider allows you to delay a stream, skip over part of it, truncate it, and append silence. Read about it here.
    • βž• Added a Readme file to recognise contributors to the project. I’ve tried to include everyone, but probably many are missing, so get in touch if you’re name’s not on the list.
    • Some code tidyup(deleting old classes, some namespace changes. n.b. these are breaking changes if you used these parts of the library, but most users will not notice). This includes retiring WaveOutThreadSafe which was never finished anyway, and WaveOutEvent is preferred to using WaveOut with function callbacks in any case.
    • πŸš€ NuGet package and CodePlex download now use the release build (No more Debug.Asserts if you forget to dispose stuff)
    • πŸ›  Lots of bugfixes, including a concerted effort to close off as many issues in the CodePlex issue tracker as possible.
    • πŸ›  Fix to GSM encoding
    • ID3v2 Tag Creation
    • ASIO multi-channel playback improvements
    • MP3 decoder now flushes on reposition, fixing a potential issue with leftover sound playing when you stop, reposition and then play again.
    • MP3FileReader allows pluggable frame decoders, allowing you to choose the DMO one, or use a fully managed decoder (hopefully more news on this in the near future)
    • πŸ“¦ WMA Nuget Package (NAudio.Wma) for playing WMA files. Download here.
    • πŸ‘ RF64 read support
  • v1.5.0 Changes

    December 18, 2011

    πŸš€ Release Announcement

    • Now available on NuGet!
    • πŸ›  Numerous bugfixes mean we are now working fully in x64 as well as x86, so NAudio.dll is now marked as AnyCPU. (You can still force x86 by marking your own executable as x86 only.)
    • WaveOutEvent – a new WaveOut mode with event callback, highly recommended instead of WaveOut with function callbacks
    • 24 bit ASIO driver mode (LSB)
    • Float LSB ASIO driver mode
    • WaveFileWriter has had a general code review and API cleanup
    • πŸ“š Preview of new ISampleProvider interface making it much easier to write custom 32 bit IEEE (float) audio pipeline components, without the need to convert to byte[]. Lots of examples in NAudioDemo of using this and more documentation will follow in future.
    • Several ISampleProvider implementations to get you started. Expect plenty more in future NAudio versions:
      • PanningSampleProvider
      • MixingSampleProvider
      • MeteringSampleProvider
      • MonoToStereoSampleProvider
      • NotifyingSampleProvider
      • Pcm16BitToSampleProvider
      • Pcm8BitToSampleProvider
      • Pcm24BitToSampleProvider
      • SampleChannel
      • SampleToWaveProvider
      • VolumeSampleProvider
      • WaveToSampleProvider
    • βž• Added AiffFileReader courtesy of Giawa
    • πŸ‘ AudioFileReader to simplify opening any supported file, easy volume control, read/reposition locking
    • BufferedWaveProvider uses CircularBuffer instead of queue (less memory allocations)
    • CircularBuffer is now thread-safe
    • MP3Frame code cleanup
    • MP3FileReader throws less exceptions
    • πŸ›  ASIOOut bugfixes for direct 16 bit playback
    • Some Demos added to NAudioDemo to give simple examples of how to use the library
      • NAudioDemo has an ASIO Direct out form, mainly for testing the AsioOut class at different bit depths (still recommended to convert to float before you get there).
      • NAudioDemo has simple MP3 streaming form (play MP3s while they download)
      • NAudioDemo has simple network streaming chat application
      • NAudioDemo playback form uses MEF to make it much more modular and extensible (new output drivers, new file formats etc)
      • NAudioDemo can play aiff
    • πŸ‘ GSM 6.10 ACM codec support
    • πŸ‘ DSP Group TrueSpeech ACM codec support
    • Fully managed G.711 a-law and mu-law codecs (encode & decode)
    • Fully managed G.722 codec (encode & decode)
    • Example of integration with NSpeex
    • πŸ›  Fix to PlaybackStopped using SyncContext for thread safety
    • Obsoleted IWavePlayer.Volume (can still set volume on WaveOut directly if you want)
    • πŸ‘Œ Improved FFT display in WPF demo
    • WaveFileReader - tolerate junk after data chunk
    • πŸ”€ WaveOut constructor detects if no sync context & choose func callbacks
    • WaveOut function mode callbacks hopefully chased out the last of the hanging bugs (if in a WaveOutWrite at same time as WaveOutReset, bad things happen - so need locks, but if WaveOutReset called during a previous func callback that is about to call waveOutWrite we deadlock)
    • πŸš€ Now has an msbuild script allowing me to more easily create releases, run tests etc
    • πŸš€ Now using Mercurial for source control, hopefully making bug fixing old releases and accepting user patches easier. n.b. this unfortunately means all old submitted patches are no longer available for download on the CodePlex page.
    • WPF Demo enhancements:
      • WPF Demo is now .NET 4, allowing us to use MEF, and will be updated hopefully with more examples of using NAudio.
      • WPF Demo uses windowing before FFT for a more accurate spectrum plot
      • WPF Demo has visualization plugins, allowing me to trial different drawing mechanisms
      • WPF Demo has a (very basic) drum machine example
  • v1.4.0 Changes

    April 20, 2011

    πŸš€ Release announcement

    • πŸš€ Major interop improvements to support native x64. Please note that I have not in this release changed the dll’s target platform away from x86 only as I don’t personally have an x64 machine to test on. However, we are now in a state where around 95% of the interop should work fine in x64 mode so feel free to recompile for β€œany CPU”. You should also note that if you do run in native x64 mode, then you probably will find there are no ACM codecs available, so WaveFormatConversionStream might stop working – another reason to stay targetting x86 for now.
    • πŸš€ There have also been major enhancements to MP3 File Reader, which is the main reason for pushing this new release out. Please read this post for more details as this is a breaking change – you no longer need to use a WaveFormatConversionStream or a BlockAlignReductionStream.
    • More examples IWaveProvider implementers have been added, including the particularly useful BufferedWaveProvider which allows you to queue up buffers to be played on demand.
      • BufferedWaveProvider
      • Wave16toFloatProvider
      • WaveFloatTo16Provider
      • WaveInProvider
      • MonoToStereoProvider16
      • StereoToMonoProvider16
      • WaveRecorder
    • ⚑️ The NAudioDemo project has been updated to attempt to show best practices (or at least good practices) of how you should be using these classes.
    • The NAudioDemo project also now demonstrates how to select the output device for WaveOut, DirectSoundOut, WasapiOut and AsioOut.
    • πŸ‘ WaveChannel32 can now take inputs of more bit depths – 8, 16, 24 and IEEE float supported. NAudioDemo shows how to play back these files.
    • 🚚 A general spring clean removed a bunch of obsolete classes from the library.
    • AsioOut more reliable, although I still think there are more issues to be teased out. Please report whether it works on your hardware.
    • πŸ‘ WaveFileReader and WaveFileWriter support for 24 and 32 bit samples
    • πŸ‘ Allow arbitrary chunks to appear before fmt chunk in a WAV file
    • Reading and writing WAV files with Cues
    • Obsoleted some old WaveFileWriter and WaveFileReader methods
    • πŸ›  Fixed a longstanding issue with WaveOutReset hanging in function callbacks on certain chipsets
    • βž• Added sequencer specific MIDI event
    • RawWaveSourceStream turns a raw audio data stream into a WaveStream with specified WaveFormat
    • A DMO MP3 Frame Decoder as an alternative to the ACM one
    • Easier selection of DirectSound output device
    • 0️⃣ WaveOut uses 2 buffers not 3 by default now (a leftover from the original days of NAudio when my PC had a 400MHz Pentium II processor!).
    • πŸ‘€ Lots more minor bug fixes & patches applied – see the check-in history for full details
  • v1.3.0 Changes

    October 10, 2009

    πŸš€ Release Announcement

    • 🚀 WaveOut has a new constructor (this is breaking change), which allows three options for waveOut callbacks. This is because there is no β€œone size fits all” solution, but if you are creating WaveOut on the GUI thread of a Winforms or WPF application, then the default constructor should work just fine. WaveOut also allows better flexibility over controlling the number of buffers and desired latency.
    • Mp3FileReader and WaveFileReadercan have a stream as input, and WaveFileWritercan write to a stream. These features are useful to those wanting to stream data over networks.
    • πŸ‘ The new IWaveProvider interface is like a lightweight WaveStream. It doesn’t support repositioning or length and current position reporting, making the implementation of synthesizers much simpler. The IWavePlayer interface takes an IWaveProvider rather than WaveStream. WaveStream implements IWaveProvider, so existing code continues to work just fine.
    • βž• Added in LoopStream, WaveProvider32 and WaveProvider16 helper classes. Expect more to be built upon these in the future.
    • 🐎 I have also started using the WaveBuffer class. This clever idea from Alexandre Mutel allows us to trick the .NET type system into letting us cast from byte[] to float[] or short[]. This improves performance by eliminating unnecessary copying and converting of data.
    • πŸ›  There have been many bugfixes including better support for VBR MP3 file playback.
    • πŸ›  The mixer API has had a lot of bugs fixed and improvements, though differences between Vista and XP continue to prove frustrating.
    • The demo project (NAudioDemo) has been improved and includes audio wave-form drawing sample code.
    • There is now a WPF demo as well (NAudioWpfDemo), which also shows how to draw wave-forms in WPF, and even includes some preliminary FFT drawing code.
    • ⚑️ The WaveIn support has been updated and enhanced. WaveInStream is now obsolete.
    • πŸ‘ WASAPI audio capture is now supported.
    • NAudio should now work correctly on x64operating systems (accomplished this by setting Visual Studio to compile for x86).
  • v1.2.0 Changes

    June 26, 2008

    πŸš€ Release Announcement

    • 🏁 WASAPI Output Model. We are now able to play audio using the new WASAPI output APIs in Windows Vista. We support shared mode and exclusive mode, and you can optionally use event callbacks for the buffer population. You may need to experiment to see what settings work best with your soundcard.
    • ASIO Output Model. We can also play back audio using any ASIO output drivers on your system. It is not working yet with all soundcards, but its working great with the ever-popular ASIO4All.
    • πŸ†• New DirectSound Output Model. We have moved away from using the old managed DirectX code for DirectSound output, and done the interop ourselves. This gives us a much more reliable way to use DirectSound.
    • IWavePlayer simplifications. As part of our ongoing plans to improve the NAudio architecture, the IWavePlayer interface has gone on a diet and lost some unnecessary methods.
    • 🏁 ResamplerDMO stream. Some Windows Vista systems have a Resampler DirectX Media Object that can be used to convert PCM and IEEE audio samples between different sample rates and bit depths. We have provided a managed wrapper around this, and it is used internally by the WASAPI output stream to do sample rate conversion if required.
    • πŸ›  ACM Enhancements - There have been a number of bugfixes and enhancements to the support for using the ACM codecs in your system.
    • BlockAlignmentReductionStream - This WaveStream helps to alleviate the problem of dealing with compressed audio streams whose block alignment means that you can't position exactly where you want or read the amount you want. BlockAlignmentReductionStream uses buffering and read-ahead to allow readers full flexibility over positioning and read size.
    • MP3 Playback - The MP3 File Reader Stream is now able to work with any wave output thanks to the BlockAlignmentReductionStream and playback MP3 files without stuttering. It uses any MP3 ACM decoder it can find on your system.
    • Custom WaveFormat Marshaler - The WaveFormat structure presents an awkward problem for interop with unmanaged code. A custom marshaler has been created which will be extended in future versions to allow WaveFormat structures to present their extra data.
    • NAudioDemo- One of the problems with NAudio has been that there are very few examples of how to use it. NAudioDemo has four mini-examples of using NAudio:
      • receiving MIDI input
      • playing WAV or MP3 files through any output
      • examining ACM codecs and converting files using them
      • recording audio using WaveIn
      • In addition the AudioFileInspector, MixDiff, MIDI File Splitter and MIDI File Mapper projects demonstrate other aspects of the NAudio framework.
    • βœ… Unit Tests - NAudio now has a small collection of unit tests, which we intend to grow in future versions. This will help us to ensure that as the feature set grows, we don't inadvertently break old code.
    • πŸš€ IWaveProvider Tech Preview - As discussed recently on my blog, we will be using a new interface called IWaveProvider in future versions of NAudio, which uses the WaveBuffer class. This code is available in the version 1.2 release, but you are not currently required to use it.
    • Alexandre Mutel- Finally, this version welcomes a new contributor to the team. In fact, Alexandre is the first contributor I have added to this project. He has provided the new implementations of ASIO and DirectSoundOut, as well as helping out with WASAPI and the new IWaveProvider interface design. His enthusiasm for the project has also meant that I have been working on it a little more than I might have otherwise!
  • v1.1.0 Changes

    May 26, 2008
    • Added some new NoteEvent and NoteOnEvent constructors
    • WaveOffsetStream
    • WaveStream32 preparation for 24 bit inputs
    • WaveStream32 new default constructor
    • Made the decibels to linear conversion functions public
    • New constructor for ControlChangeEvent
    • New constructor for ChannelAfterTouchEvent
    • New constructor and property setting for PatchChangeEvent
    • New constructor for PitchWheelChangeEvent
    • Bugfix for sysex event writing
    • MidiEvent IsEndTrack and IsNoteOff are now static functions
    • New IsNoteOn function
    • NoteOnEvent now updates the NoteNumber and Channel of its OffEvent when they are modified
    • MIDI events are now sorted using a stable algorithm to allow batch file processing utilities to retain original ordering of events with the same start times.
    • New MidiEventCollection class to make converting MIDI file types more generic
    • Added an NUnit unit tests library
    • Fixed a bug in meta event constructor
    • MidiFile updated to use MidiEventCollection
    • Many enhancements to MIDI interop
    • New MidiIn, MidiInCapabilities classes
    • Added a new NAudioDemo for testing / demonstrating use of NAudio APIs
    • More MidiEventCollection automated tests
    • Test application can now send test MIDI out messages