• Rafaël Carré's avatar
    opensles: simplify error handling · a9a471da
    Rafaël Carré authored
    Instead of busy waiting and retrying, buffer packets and wait for the next
    pf_play() call to write them to the sound card.
    We now have 2 linked lists:
        - packets not accepted yet by Enqueue()
        - packets accepted by Enqueue(), not yet written to hardware, and
        waiting to be released in PlayedCallback()
    a9a471da
opensles_android.c 15.7 KB