This project has moved and is read-only. For the latest updates, please go here.

Audio file locked by WaveViewer

Apr 18, 2015 at 8:22 PM
Edited Apr 18, 2015 at 8:22 PM

I have a .wav audio file that I want to show in windows form and simultaneously add to the video, that I create in my C# aplication, but when I try to add audio into videa an exception is thrown saying that the audio file is locked by another proces.

How can I unlock the audio file used by WaveViewer?
Oct 10, 2016 at 2:39 PM
you'd need to dispose the WaveStream that was passed to it. To be honest, the WaveViewer should really be moved to the samples part of NAudio as it was just a quick demo of how to do waveform rendering