I didn't get this buffer delay calculation in android HAL.
bufDelay = (long)(((int64_t)(mInputFramesIn + mProcFramesIn) * 1000000000)
/ AUDIO_HW_IN_SAMPLERATE);
I didn't understand why they are subtracting (mInputFramesIn + mProcFramesIn) with AUDIO_HW_IN_SAMPLERATE (i think the value of this macro will be 44,100).can anyone help me in this.