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

Quastions about WaveProvider and change volume

Oct 4, 2011 at 11:38 PM
Edited Oct 4, 2011 at 11:38 PM

Hi mark, 

I wrote a nice application with your lib, thank you!

I have a few issues

1. Now I use WaveOut with NewWindow with desired lantency = 300. (My application wrote in wpf .net 4 and run on WinXP). my GUI thread need to do hard work to paint the waveform and the fft and sometimes the sound and the displaying arent smooth. can you tell me please if its better for me to use another IWavePlayer (maybe Asio)? or WaveOut with EventCallback?

2. A part of my req is to decrease the volume or mute (not the windows volume but the player) but i want to keep showing the waveform and the fft. there is way to do that? (i use WaveChannel32)

I'll really appreciate your answer

Oct 12, 2011 at 2:30 PM

For performance, you would be best looking at ways of optimising the waveform and FFT drawing code.

To keep showing the waveform, you must base the drawing and FFT on the samples before you adjust their volume. I am working on making this easier to do for the next version of NAudio.

Oct 12, 2011 at 6:52 PM

change desired lantency to about 100 - 150. You will see it looks like much better.

Oct 16, 2011 at 9:15 PM
Edited Oct 16, 2011 at 9:16 PM


Oct 17, 2011 at 8:49 AM

thanks for the answers.

can you tell me please when the next version will release?

Oct 17, 2011 at 9:41 AM

most of the code for NAudio 1.5 is done, so you can try it out by getting the latest source code. I've been too busy to work on NAudio over the last few months, so it depends when I next get some free time to do a release