How to code circullar buffer to create a delay and used the wavein for micrcophone input and output to speaker?
public NAudio.Wave.WaveIn input = null;
public NAudio.Wave.DirectSoundOut waveout = null;
public NAudio.Wave.WaveInProvider wavein = null;
private void button1_Click(object sender, EventArgs e)
{
WaveIn input = new NAudio.Wave.WaveIn();
input.WaveFormat = new NAudio.Wave.WaveFormat(44100, 2);
IWaveProvider wavein = new NAudio.Wave.WaveInProvider(input);
waveout = new NAudio.Wave.DirectSoundOut();
waveout.Play();
}
Any answer Guys? :)