I'm writting an application for Android where my goal is to record the user singing. After the recording, I play the record synced with the instrumental one (which is not a problem).
The problem is when I start recording at the same time as playing the audio I suspect there is a delay for the recording to start: (it is noticeable when I try to play the recording later when the recording recorded the instrumental too). The delay might be around 300ms on nexus 5.
My inquiries are:
- is the delay constant on all Android devices (4.0 +)?
- how to calculate delay without involving complex methods?
- is it acceptable on mobile device, to open the audio recording and scale it to instrumental (which may involve audio decoding/encoding)?
How to get rid of the delay?