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

How do I play the line-in signals directly?

Jul 24, 2008 at 3:08 AM
I should implement this function in my project, Now I do not know how to implement this function. I got this NAudio component, but I don't know how to use it. Please give a help for this.
Thanks and best regards!
Jul 31, 2008 at 10:05 AM
Hi there,
Your soundcard probably already supports feeding the input from line-in out to the output of your soundcard, so no programming is needed at all.
To do this within NAudio, you need to use the WaveInStream and when you get an event indicating that you have captured some audio, buffer it. Then you would need to create a custom WaveStream that could supply the buffered data to the WaveOut interface (which would need to be set at the same sample rate and bit depth).
Sep 1, 2008 at 11:20 AM
Dear Markheath!

Please tell about how to create a custom Wavestream to supply buffered data to WaveOut Interface.


Sep 3, 2008 at 11:21 PM
you create a class that inherits from WaveStream. You will need to override the Read method to provide bytes from your buffer.
Oct 15, 2009 at 2:26 PM

i am new to audio stuff. can you post the read function of the derived wavestream for this.