In my application all my Button have their own sound effects. I just want two button in my setting to disable and enable sound effects in whole application. I enable sound effects for each button like this:
MediaPlayer mp = MediaPlayer.create(getApplicationContext(), R.raw.laser);
mp.start();
but how i can disable , and also i try this code:
setSoundEffectsEnabled(false);
but the point is that i just want to disable and enable sound effects by user's selection . I was wondering if anyone could suggest me any solution.
0 comments:
Post a Comment