android - Power of two bufferSize -
384 I was searching for a way to record the power of two file sizes, and I found
It works well, but I do not know what this equation means:
  buffer size = 2 & lt; & Lt; (Int) (log (RECORDER_SAMPLERATE) / log (2) -1);   I am familiar with the transfer signed in Java but I am not getting the same output. It gives a buffer size of 16384 samples. I want to reduce it
 For example if you type  2 ^ (log (2048) / log (2))  You can give 2048 samples per buffer if your frame rate is 44100, then you record 464 millisecond ==  2048/44100 = 0.0464  
 This is your  Buffer Size , you can have the power of two values directly in your  buffer size  variable (1024, 2048, 4096, etc.) 
Comments
Post a Comment