[FM] There is a pop noise when tapping stop button to resume playing

Launch FM and play -> Tap stop button to stop playing
-> Tap stop button to resume playing -> Check the audio
when tapping stop button in step 3, there is a pop noise
when tapping start button to resume playing.

The fix is to check if it needs to ignore first three frames
of audio data from AudioRecord to avoid pop noise.

from: https://partner-android-review.googlesource.com/#/c/192415/2

Bug 18809647

Change-Id: I09ffc058ee3e87296e8d3d98fc2909ec77046e1d
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
1 file changed
tree: 09f1ae7d24207998d9749eec83ade277fa4b0b25
  1. res/
  2. src/
  3. Android.mk
  4. AndroidManifest.xml