Multiple AudioTrack Instances (and Threads) in a Single Service?

匆匆过客 提交于 2020-01-03 02:51:07

问题


I have a streaming music application that can play two streams simultaneously by using two separate services utilizing one AudioTrack each, on their own threads. Now I'd like to able to play more than two streams, and I guess having more services is not the way to go.

Is it possible to have a single service having dynamically instantiated AudioTracks? How can I implement separate threads for each of the AudioTrack instances? How will I access the dynamically instantiated AudioTracks?

来源:https://stackoverflow.com/questions/27493521/multiple-audiotrack-instances-and-threads-in-a-single-service

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