Is the sound actually playing?

There are many reasons why the sound is not working (speakers not muted, volume turned off, level set to zero, software configuration problems, etc.)

How can I know from my program if the sound is working and audible?

+2


source to share


3 answers


The only way to reliably do this pretty much is to ask the user:

play sound;
if (user_hears_sound_dialog)
  sound works;

      



Edit: Please don't do an unannounced sound test killing users' ears, potentially blowing out its speakers and causing it to kill the app. It's just not nice, look!

+6


source


Of course, only the user can decide if the sound works.



Programmatically, I believe that with only micro-sound you could trace sounds.

0


source


The screen will display two buttons.

Place a note under the buttons: "Press the right button".

At the same time, play this audio message: "Please ignore the text of the note on the screen and press the left button."

Wait while the button is pressed.

0


source







All Articles