How to mute a soundpool?
问题 I want to allow the user to mute the app with a button and someone advised me to ''stick a boolean on your MediaPlayerPool that you set to false when the mute button is pressed. Then in your playSound method, do nothing if the value is false.''but i dont know how to do that. Could someone post an example code pls. The pool code : public class MediaPlayerPool { private static MediaPlayerPool instance = null; private Context context; private List<MediaPlayer> pool; public static MediaPlayerPool