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

New Post: noisy input

$
0
0
K24A3,

the input is stereo
I did what you said, not the Aggregator stuff, but this :
 waveIn.BufferMilliseconds = 12;

ect ....

 void waveIn_DataAvailable(object sender, WaveInEventArgs e)
        {
PointPairList list = new PointPairList();
            PointPairList list2 = new PointPairList();
            byte[] buffer = e.Buffer;
            int bytesRecorded = e.BytesRecorded;
            points = new RollingPointPairList(1024);        
            buffer1 = new double[1024];             
            int tempint = 0;
for (int index = 0; index < 2048; index += 2)
            {

                 buffer1[tempint] = Convert.ToDouble((buffer[index + 1] + buffer[index + 0]) / 2D); 
                
                tempint++; 

            }
and this is how it looks now:
http://www.youtube.com/watch?v=b6wKFRY1mxw&feature=youtu.be

it is still Noisy and I this have to do
.Magnitude less then 30000

IDK why it is not working...

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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