ivanbuper 4669476353 Implement hasPendingData() in AudioGraphInputAudioSink
hasPendingData() should signal whether the final audio sink still
holds unconsumed frames so that the renderer can accurately detect a
buffering state.

Before this change, a media item transition could incorrectly trigger
a buffering state in the internal sequence players and cause
CompositionPlayer to interrupt playback. See Issue: androidx/media#2228.

PiperOrigin-RevId: 756252645
2025-05-08 04:28:39 -07:00
..