Hello, Now I creating my project about Effect Guitar by DSP. then my project have some problem about MIC input to effectStream. Because I get data form MIC-input by WaveIn and get data into BufferWaveProvider. But I can't to get input data to pass effectStream.
Please help me give some a sample code to get data pass effectStream.
public void Start()
waveOuts = new WaveOut();
sourceStream = new WaveIn();
sourceStream.BufferMilliseconds = 20;
sourceStream.DeviceNumber = 0;
sourceStream.WaveFormat = new WaveFormat(44100, 16, 2);
sourceStream.DataAvailable += new EventHandler<WaveInEventArgs>(sourceStream_DataAvailable);
waveBuffer = new BufferedWaveProvider(sourceStream.WaveFormat);
waveBuffer.DiscardOnBufferOverflow = true;
//effectStream = new EffectStream(effects, waveBuffer);
private void sourceStream_DataAvailable(object sender, WaveInEventArgs args)
waveBuffer.AddSamples(args.Buffer, 0, args.BytesRecorded);
How I can get data to pass effectStream for my output. Please help me. Thank you so much.
Ps. Sorry for my English is poor. And I beginner in C#. Sorry very much.