For example, suppose my app has some sound effects when click some buttons, and I have a sound toggle button, which clicks to turn on sound, and clicks again to turn off sound. My question is, when should I play the click button sound effect?

  1. sound on -> sound off
  2. sound off -> sound on

which case should I play the click button sound effect?

  • Can you give a little more information about the scenario to help us give a more helpful answer? For example, I am wondering if all the other buttons (that don't start sound) also have this click sound when you press them? What else does the app do other than play sounds that you can turn on and off?
    – Franchesca
    Commented Oct 8, 2018 at 7:06

1 Answer 1


I would implement this function like this:

Default behaviour should be sound off or when you use an user profile as user has set this option.

  1. When sound is off and user clicks on sound toggle button then sound should be played.

  2. When sound is on and user turns off the sound it should not be played.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.