The currently audio playback implementation has several issues:
* An audio player playing on the background will get muted by the app when an audio packet comes.
* Only support 48000kHz sample rate.
* Not properly handling playback failure case, which causes quite a few crashes when the app resumes from background.
* A few bugs untested in unittests. E.g. next_frame here doesn't account for bytes_extracted_:
https://cs.chromium.org/chromium/src/remoting/client/audio/audio_player_buffer.cc?l=160&rcl=0c006dc4fc5bcfb225ddd7e2528944f57d6e842a
* No unittests for the native code.
* Messy thread managing. E.g. AudioPlayerIos is used on the audio thread but it needs to be deleted on a network thread.
* The code is hard to follow. Some logic-class breakdown doesn't make much sense.
Comment 1 by bugdroid1@chromium.org
, Jul 26