Provide an option to display a visual cue for all audio alerts.
Rationale
Users may not be able to hear or distinguish sounds if they are deaf or hard-of-hearing, work in noisy environments, or turn off sounds to avoid disturbing others. In order for these users to respond to audio alerts, those alerts must be presented visually as well. Typical alerts might be the receipt of new mail, beeps to indicate system errors, or sounds to indicate a change in status.
Development techniques
Use one or more of the following techniques to meet Checkpoint 3.1 from the IBM Software Accessibility Checklist:
If the application has audio alerts, allow the user to choose visual cues for audio alerts using one of the following techniques:
- The ShowSounds feature in Windows (Control Panel - Accessibility Options) is set by the user to request that applications sounds be presented visually. ShowSounds can be accessed in one of the following ways:
- (Preferred method). Call the GetSystemMetrics function with the SM_SHOWSOUNDS parameter to get the value of the ShowSounds system parameter. If SM_SHOWSOUNDS is true or non-zero, present visual equivalents of audio information.
- Call the SystemParametersInfo function with the SPI_GETSHOWSOUNDS parameter. If set, present visual equivalents of all audio information.
- For more information, see Accessing ShowSounds Programmatically (link resides outside of ibm.com) on the Microsoft developers Web site.
- The Windows SoundSentry feature can be used to provide visual feedback for general system alerts such as warning beeps. SoundSentry requires no special coding on the part of application developers.
- The Macintosh Visual Alerts (link resides outside of ibm.com) feature is set by the user to request that errors and alerts sounds be presented visually by having the menu bar blink.
Provide visual cues in any of the following manners:
- Display a message box for the alert. (Message Format Class of java.text, Windows MessageBox).
- Display a status indicator on the notification area of the taskbar that flashes when initially displayed to attract the user's attention.(Windows Shell_NotifyIcon NIM_MODIFY).
- Place a text message in a status window.(Container subclass for Panel or Dialog, java.awt.container, Windows C StatusBarCtrl SetPaneText).
- Display a dialog (java.awt.dialog, Windows CreateDialog).
Testing techniques
Test the software to ensure that it complies with accessibility requirements.
| Action | Result |
|---|---|
1. Enable SoundSentry to verify there are visual cues for system audio alerts.
|
Pass:
The software provides visual cues for system audio alerts. The following visual cues may be used:
There are no visual indications for the system audio alerts. If there are no cues using ShowSounds, perform the next test to see if there is an application option to display visual cues. |
2. Enable ShowSounds to verify there are visual cues for audio alerts.
|
Pass:
The software provides visual cues for audio alerts. The following list provides examples of visual cues that may be used:
There are no visual indications for the audio alerts. If there are no cues using ShowSounds, perform the next test to see if there is an application option to display visual cues. |
|
3. Test the user option to display visual cues for audio alerts. You do not need to perform this test if the ShowSounds test was successful.
If the software did not provide a visual cue with ShowSounds enabled, it must provide a user option to show audio alerts visually.
|
Pass:
The software provides visual cues for audio alerts. The following list provides examples of visual cues that may be used:
|
The following techniques are required to verify this checkpoint:
| Action | Result |
|---|---|
1. Enable Visual Alerts to verify there are visual cues for system audio alerts.
|
Pass:
The menu bar blinks when there is an alert. Fail: The menu bar does not blink when there is an alert. |
©2001, 2008 IBM Corporation
Last updated January 23, 2008.
