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

New Post: how to amplify grabbed recorded voice bytes from microphone?

$
0
0

I had this code:

            Int16 int16 = BitConverter.ToInt16(buffer, 0);
            int16 *= 2;
            buffer = BitConverter.GetBytes(int16);

of course it doesnt work, but I check the buffer array of bytes, I found the lenght of array is 8820 bytes and after multiplying by two, I found the array of byte (buffer) is going to two bytes only !!!!

so BitConverter.ToInt16 does not work with me ! do I need to do foreach loop and multiply each byte?

please help !


Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images