I\'m getting buffer overflow while RECORDING with my app. The recording is performed in a Service. I could not figure out why I\'m getting this message
RECORDING
Service
Thats because :
framePeriod = bufferSize / bytesPerFrame;
You need to multiply and not divide your buffersize.
Try with :
framePeriod = bufferSize * bytesPerFrame;
And if you need a sample : here is a complete audio capture class
hope it helps