我正在循环播放和音轨...
audioTrack.setLoopPoints(0, length, -1);
audioTrack.play();
但是在随机时间(几分钟)之后,它停止发声,但状态是 STATE_INITIALIZED 和 PLAYSTATE_PLAYING。在那一刻,我收到了这条信息......
09-20 19:32:27.989: D/audio_hw_primary(176): out_standby: enter: usecase(1: low-latency_playback)
09-20 19:32:28.039: D/audio_hw_primary(176): stop_output_stream: enter: usecase(1: low- latency-playback)
09-20 19:32:28.049: D/audio_hw_primary(176): disable_audio_route: reset mixer path: low-latency-playback
09-20 19:32:28.049: D/audio_hw_primary(176): disable_snd_device: snd_device(2: speaker)
09-20 19:32:28.049: D/audio_hw_primary(176): stop_output_stream: exit: status(0)
09-20 19:32:28.049: D/audio_hw_primary(176): out_standby: exit
我需要无限循环音轨,请,有人知道如何解决吗?
PD:停止似乎只发生在 4.1 及更高版本中。