google / patchfield

Audio infrastructure for Android
Apache License 2.0
277 stars 43 forks source link

Issues in Nexus 5 with Android L. #5

Open BrunoSilva85 opened 9 years ago

BrunoSilva85 commented 9 years ago

Hi Peter,

first of all thank you for this amazing project.

I've been working with Patchfield for a while, and I'm facing some issues when using the samples (the Patchfield controller with lowpass module) in Nexus 5 (Android L). After playing for a few minutes, the audio quality begins to deteriorate (sometimes it stucks in a loop, playing the same half second or so for a few seconds), and after a while backs to normal.

This behaviour seems to only happen with Patchfield based applications. I've tested the opensl_stream sample for relatively long periods of time (~45 minutes) without issues. The only scenario, using pathcfield, in which this issue does not seems to happen, is when an audio file is used as source instead of device microphones (through PcmSample).

I've been searching in systrace files for some clue that could indicate the cause of this issue, but can't find any. FastMixer is called regularly (every ~5ms, as expected) and there are no gaps in frames ready counters.

Best regards, Bruno