Audiotrack doesn't stop with audioTrack.stop() since last Android version

自闭症网瘾萝莉.ら 提交于 2019-12-13 17:27:44

问题


I'm using an Audiotrack for looping some music.

I was using the method audioTrack.stop() to stop, but since the last update it doesn't work. From the last version only this way works:

audioTrack.pause();
audioTrack.flush();

But this method doesn't stop the audio in the previous Android versions. Anyone knows what method works in all the Android versions ?

来源:https://stackoverflow.com/questions/24479158/audiotrack-doesnt-stop-with-audiotrack-stop-since-last-android-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!