Fixed buffer length audio recorder with FIFO updating implemented for android.media