Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a video I was watching about SoundPool, it mentioned setMaxStreams. The streamer said that setMaxStreams allows SoundPool to dedicate a portion of memory to each stream and set them up before it's even used.

This confused me since the name 'setMaxStreams' implies that this attribute limits the number of streams that can be played in a SoundPool. I checked the docs, and it said the same thing.

So does SoundPool's setMaxStreams prepare the streams ahead of time and limit the max number of streams?

Thanks!

What I have tried:

Just a general question about SoundPool. Thanks!
Posted
Updated 1-May-21 21:22pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900