douban / DOUAudioStreamer

A Core Audio based streaming audio player for iOS and macOS
BSD 3-Clause "New" or "Revised" License
2.77k stars 556 forks source link

音频播放被系统打断后会造成无休止的wait, 造成之后无法响应任何播放事件 #170

Open qtiuto opened 4 years ago

qtiuto commented 4 years ago

首先播放一段音乐,然后用AVAudioSession 改变category并setActive打断音频渲染,然后由于渲染不完全- (void)renderBytes:(const void *)bytes length:(NSUInteger)length 无法结束,然后stop也处理不了,然后整个线程就卡死了