I have an example that I am working from for decoding mp3 audio with MediaCodec for playing using MediaPlayer and AudioTrack. The example is using getInputBuffers() which is now depricated in API 21+. The new getInputBuffer(int index) returns one buffer instead of an array and the API reference for the MediaCodec still shows the use case for getInputBuffers().
Can anyone explain how I need to go about using the new method? Do I just get the index 0 each time? I started to loop and get each and make an array but there isn't a place, that I have seen, where I can get the length of available buffers.