title: Android Audiotrack UI freeze while write
body: <p>I'm trying to play a sound continuously and I've created an audiotrack in stream mode. It works but every time the listener reacts and write a new batch of data to the buffer the UI freezes for a small time. The track along with the listeners reside in their own Thread and the thread is set with min priority. </p>
  
  <p>What am I doing wrong? </p>
  
  <p>For my purposes I could probably use the loop method but I want to understand how to stream sound without blocking the UI.</p>
  
  <p>Thanks in advance.</p>