1. 02 Aug, 2019 2 commits
    • Fix DefaultOggSeeker seeking · 3c8c5a33
      - When in STATE_SEEK with targetGranule==0, seeking would exit
        without checking that the input was positioned at the correct
        place.
      - Seeking could fail due to trying to read beyond the end of the
        stream.
      - Seeking was not robust against IO errors during the skip phase
        that occurs after the binary search has sufficiently converged.
      
      PiperOrigin-RevId: 261317035
      olly committed
    • Revert to using header bitrate for CBR MP3s · 80bc50b6
      A previous change switched to calculation of the bitrate based on the
      first MPEG audio header in the stream. This had the effect of fixing
      seeking to be consistent with playing from the start for streams where
      every frame has the same padding value, but broke streams where the
      encoder (correctly) modifies the padding value to match the declared
      bitrate in the header.
      
      Issue: #6238
      PiperOrigin-RevId: 261163904
      andrewlewis committed
  2. 01 Aug, 2019 16 commits
  3. 29 Jul, 2019 1 commit
  4. 28 Jul, 2019 5 commits
  5. 27 Jul, 2019 2 commits
    • Bump version to 2.10.4 · d76bf4bf
      PiperOrigin-RevId: 260164426
      olly committed
    • Fix handling of channel count changes with speed adjustment · 95d29884
      When using speed adjustment it was possible for playback to get stuck at a
      period transition when the channel count changed: SonicAudioProcessor would be
      drained at the point of the period transition in preparation for creating a new
      AudioTrack with the new channel count, but during draining the incorrect (new)
      channel count was used to calculate the output buffer size for pending data from
      Sonic. This meant that, for example, if the channel count changed from stereo to
      mono we could have an output buffer size that stored an non-integer number of
      audio frames, and in turn this would cause writing to the AudioTrack to get
      stuck as the AudioTrack would prevent writing a partial audio frame.
      
      Use Sonic's current channel count when draining output to fix the issue.
      
      PiperOrigin-RevId: 260156541
      andrewlewis committed
  6. 26 Jul, 2019 14 commits