Skip to content Skip to sidebar Skip to footer

Audiorecord Buffer Filled With Zeros

Why is the audioData short[] buffer I create in the code below filled with 0 upon each samplesIn += mRecordInstance.read(audioData, samplesIn, bufferSize - samplesIn); ? The size

Solution 1:

I found that I did in fact record some data - it was just the section I chose to display that only recorded zeros. I prove this by summarizing all entries into the audioData array and dividing it by the number of entries into the array. The result was -3.455619047619048.


Post a Comment for "Audiorecord Buffer Filled With Zeros"