title: ExoPlayer AudioTrack Stuttering
body: <p>I have my own implementation of <code>TrackRenderer</code> for an mp3 decoder, that I integrated. When a lollipop device goes to standby and comes back, it's not always repeatable but the audio starts to stutter until I force stop the application.</p>
  
  <p>In the beginning, I thought it was the decoder I implemented, so I tried comparing the file output between a stuttering track to a normal one. The files are identical, I then thought maybe it's taking too long to decode, so I increased the buffer size and called <code>setPlayReady</code> false, in order for the data to buffer. It stutters the same as if I didn't pause. I am currently thinking the issue is with either my implementation of an audio track or an OS bug. The bug only happens on Lollipop devices.</p>
  
  <p>My TrackRenderer uses the same workflow as <a href="https://github.com/google/ExoPlayer/blob/b3bf8fea20c1e82abef9a9a2699b3d7147672dd3/extensions/opus/src/main/java/com/google/android/exoplayer/ext/opus/LibopusAudioTrackRenderer.java" rel="noreferrer">AudioTrackRenderer</a>, with my own native implementation for the decoder for mp3 and not opus.</p>