开发者

endInterruption not being called evrytime

I am using openCL to play sounds and I have noted that the sounds stop functioning after a call enters and I press Decline. I was able to trace it to the endInterruption not being called.

The problem is that this开发者_如何学Go happens only about once out of 5 times I repeat the replication. This means that my code is ok, because in the majority of times it does call endInterruption, but still every other time iOS decides not to call endInterruption and I have no idea why.


Check if you are calling the "play" functions from a background thread instead of the main thread. If sometimes you initiate the play/playAtTime call from a background thread, you will not receive the endInterruption callback.

Interestingly though, the system does call beginInterruption even when the play call was initiated from a background thread.

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜