LAC users generally expect to hear "beeps" to alert them of events. This little block of code will sound two high-pitched beeps in rapid succession:
sound->setVolume(SOUND_BEEP2, 40); // and beep softlysound->play(SOUND_BEEP2, false);
LAC's users are accustomed to hearing that polite little "double-beep" upon successful enabling or completion of a requested task or upon arrival of some good or expected event.
This little block fo code will sound a single, lower-pitched beep:
sound->setVolume(SOUND_BEEP1, 40); // and beep softlysound->play(SOUND_BEEP1, false);
LAC's users are accustomed to hearing that polite little "single-beep" upon disabling of a device or de-activating a task, or upon arrival of some unpleasant or undesired event.
In both of the above code examples, the number "40" controls the acoustic volume of the associated beep. "40" is a typical, polite level. The volume can range from "0" (inaudible) to "128" (painfully LOUD).
Mission developers can insert little blocks of code like these to cause LAC to issue beeps wherever they may desire within their missions.
Last edit: bbosen 2020-06-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
LAC users generally expect to hear "beeps" to alert them of events. This little block of code will sound two high-pitched beeps in rapid succession:
LAC's users are accustomed to hearing that polite little "double-beep" upon successful enabling or completion of a requested task or upon arrival of some good or expected event.
This little block fo code will sound a single, lower-pitched beep:
LAC's users are accustomed to hearing that polite little "single-beep" upon disabling of a device or de-activating a task, or upon arrival of some unpleasant or undesired event.
In both of the above code examples, the number "40" controls the acoustic volume of the associated beep. "40" is a typical, polite level. The volume can range from "0" (inaudible) to "128" (painfully LOUD).
Mission developers can insert little blocks of code like these to cause LAC to issue beeps wherever they may desire within their missions.
Last edit: bbosen 2020-06-02