Play several sound effects simultaneously using OpenSL ES Android

僤鯓⒐⒋嵵緔 提交于 2019-12-06 12:16:02

I'm working with OpenSL ES as well. Little bit complicated ay the beginning...

Anyway you can create as much ObjectPlayer you want, always remember that the maximum ammount of objects is 32.

So, ideally, if you want to play 4 sounds at the same time, you need 4 PlayerObject and 1 OutputMixObject

Hope you can find usefull

Here's a completely different approach: I'm using SoundPool to do this: It's very simple and it works perfectly.

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