0

How can I give the user the option to turn off all the sounds in my app - if they so choose.

I want the sounds to be there as standard. However, some users may prefer not to have the bleeps and sound effects etc in my app. For instance, in Camera plus or Paste Bot you have to option to turn off the sounds with a UI switch. How do I implement that?

Michael Petrotta
  • 59,888
  • 27
  • 145
  • 179
JSA986
  • 5,870
  • 9
  • 45
  • 91

1 Answers1

0

You just need to define a variable to indicate this option,and save it in some place.

Xiangping Meng
  • 160
  • 1
  • 8
  • Im sorry i dont understand that in context. If I have a toggle switch for instance how can I code it to turn off all sounds? – JSA986 Jun 16 '12 at 11:35
  • @jonathan, was that supposed to be clever. How is your answer to a question of how do I code it: "by coding it" be of any merit. obviously Suggests I don't know how to code it. Think! – JSA986 Jun 17 '12 at 12:39
  • Yes, but the answer is "if sound turned on, play sound, else don't". There's not really anything for us to explain past that. – Jonathan Grynspan Jun 17 '12 at 14:49
  • I disagree, if toggle is set on do nothing if toggle is off set a global variable to make sounds in my app to off. It's is the code to implement that I am unsure of which is why I posted a question hoping someone may "explain past that" – JSA986 Jun 17 '12 at 15:14