mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
We have an existing logic for recovering the `AudioTrack` from the [ERROR_DEAD_OBJECT](https://developer.android.com/reference/android/media/AudioTrack#ERROR_DEAD_OBJECT) throws. However, this only applies to the situation when the `writtenEncodedFrames > 0`. However, we have a case when `ERROR_DEAD_OBJECT` throws while writing PCM data. When the `tunneling` is turned on, the `AudioTrack` is set the flag `AUDIO_OUTPUT_FLAG_HW_AV_SYNC`, and further because of this flag, it is forced the flag `AUDIO_OUTPUT_FLAG_DIRECT`. When the platform invalidates the `AudioTrack`, the `AudioTrack` won't be restored by the platform due to `AUDIO_OUTPUT_FLAG_DIRECT` flag, and `ERROR_DEAD_OBJECT` is thrown. Issue: androidx/media#431 PiperOrigin-RevId: 562582451 |
||
|---|---|---|
| .. | ||
| cast | ||
| common | ||
| container | ||
| database | ||
| datasource | ||
| datasource_cronet | ||
| datasource_okhttp | ||
| datasource_rtmp | ||
| decoder | ||
| decoder_av1 | ||
| decoder_ffmpeg | ||
| decoder_flac | ||
| decoder_midi | ||
| decoder_opus | ||
| decoder_vp9 | ||
| effect | ||
| exoplayer | ||
| exoplayer_dash | ||
| exoplayer_hls | ||
| exoplayer_ima | ||
| exoplayer_rtsp | ||
| exoplayer_smoothstreaming | ||
| exoplayer_workmanager | ||
| extractor | ||
| muxer | ||
| session | ||
| test_data | ||
| test_exoplayer_playback | ||
| test_session_common | ||
| test_session_current | ||
| test_utils | ||
| test_utils_robolectric | ||
| transformer | ||
| ui | ||
| ui_leanback | ||