Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: CreateWaveFile and it's progress

$
0
0

First off, I am a complete newb with NAudio but I am loving it so far!

One question, I am decoding long MP3's (an average 60 minutes or more) using the following:

 

using (NAudio.Wave.Mp3FileReader reader = new NAudio.Wave.Mp3FileReader(r.Cells["Path"].Value.ToString()))
{
     using (NAudio.Wave.WaveStream pcmStream = NAudio.Wave.WaveFormatConversionStream.CreatePcmStream(reader))
     {
          NAudio.Wave.WaveFileWriter.CreateWaveFile(Guid.NewGuid().ToString() + ".wav", pcmStream);
     }
}

 

My question is, it is possible to get the progress of the wav file creation so I can show that to the user in a progress bar or some other UI element?  If there isn't an out of the box implementation for this, can someone point me in the right direction on where to start?

Cheers and thanks NAudio guys / gals!


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>