且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

媒体播放器错误(-19,0​​)反复播放后,

更新时间:2023-02-02 16:14:13

我觉得你的不释放您使用播放声音的mediaplayers .. 你需要释放()的媒体播放器,否则资源不释放,你很快就会出现内存不足(因为你分配他们下次再来)。所以,我觉得你可以玩两次,甚至三次......但没有多少时间,而释放资源

I think you are not releasing the mediaplayers you are using to play the sound.. You need to release() the media players otherwise the resources are not released , and you soon get out of memory (since you allocate them again next time). so,I think you can play twice or even thrice... but not many times without releasing the resources