public AudioRecord (int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, int bufferSizeInBytes)
This is the Public Constructor of AudioRecord
, you can find the last parameter called bufferSizeInBytes
, and it means "the total size (in bytes) of the buffer where audio data is written to during the recording." in android docs.
I thought this is a buffer for storing all data which is sampled from audio hardware. i have a question :
If the number of data which is sampled through audio exceed the "bufferSizeInBytes" , what will happen, stop sampling or else?
I did some test , and found that nothing happened (it kept recording)even if the number of the sample data has exceeded. why?
So can anyone tell me what's the meaning about "bufferSizeInBytes"