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

New Post: AudioFileReader copyto progress

$
0
0
How would I be able to update a progress bar if I am copying a wav file to a mp3 file

I use the following code to copy the file and it works perfectly I just want to be able to show the progress of the copy to the enduser
        using (reader = new AudioFileReader(FilenameTextBox.Text))
        {
            reader.Volume = VolumeTrackBar.Value * 0.5f;
            using (LameMP3FileWriter writer = new LameMP3FileWriter(string.Format(@"{0}\{1}.mp3", DestDirTextBox.Text, SermonTextBox.Text), reader.WaveFormat, 128))
            {
                reader.CopyTo(writer);
            }
        }

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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