Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaPlayer实例不可重复利用播放sound #3

Closed
GoogleCodeExporter opened this issue Nov 19, 2015 · 1 comment
Closed

MediaPlayer实例不可重复利用播放sound #3

GoogleCodeExporter opened this issue Nov 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

目前MediaPlayer只提供了MediaPlayer.create(Context  context, int 
resid)这个静态方法可以指定内嵌的声音,所以为了播放声音��
�能新建MediaPlayer。这意味着不能重复利用MediaPlayer对象,这样
不断申请和释放资源,会对性能造成影响。


Original issue reported on code.google.com by liufengy...@gmail.com on 2 Nov 2010 at 1:11

@GoogleCodeExporter
Copy link
Author

使用SoundPool类,不存在这个问题了。

Original comment by liufengy...@gmail.com on 6 Nov 2010 at 3:58

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant