• Jean-Michel Trivi's avatar
    OpenSL ES: support decode to PCM buffer queue · 13837cf3
    Jean-Michel Trivi authored
    Created a new audio player class, APlayer, from which we derive
     subclasses to encapsulate OpenSL ES AudioPlayer implementations:
     - ASfPlayer derives from APlayer and encapsulates StageFright
       functionality for audio decoding to a buffer
     - ADecoder derives from ASfPlayer and encapsulates rendering
       the decoded audio data to a callback function. It interfaces
       with the OpenSL ES Buffer Queue interface to pass the decoded
       data back to an OpenSL ES application.
    
    For OpenSL ES, to support decoding to a Buffer Queue, we now
     allow an AudioPlayer to have its sink be a PCM buffer queue.
    
    Change-Id: I9aefeb0375a71f7ca770c5c62b4fb8faf59c9c23
    13837cf3
android_AudioToCbRenderer.cpp 3.6 KB