Workaround to prevent "Out of memory" error when creating AudioTrack.
On some devices (eg. LG Optimus 5) the call to AudioTrack::getMinFrameCount() returns a weird value. If this is the case do not use it, take the value returned by AudioRecord::getMinFrameCount() instead.
Showing with 7 additions and 0 deletions