|
|
|
|
| | PlaySound(sound) |
Overview | Top |
|
|
|
|
| | Plays one of the 6 preset RCX sounds. The sound argument must be a constant. The following constants are pre-defined for use with PlaySound: SOUND_CLICK, SOUND_DOUBLE_BEEP, SOUND_DOWN, SOUND_UP, SOUND_LOW_BEEP, SOUND_FAST_UP.
PlaySound(SOUND_CLICK);
|
|
|
|
|
|
|
|
|
|
|
| | PlayTone(frequency, duration) |
Overview | Top |
|
|
|
|
| | Plays a single tone of the specified frequency and duration. The frequency is in Hz and can be a variable for RCX2 and Scout, but has to be constant for RCX and CyberMaster. The duration is in 100ths of a second and must be a constant.
PlayTone(440, 50); // Play 'A' for one half second
|
|
|
|
|
|
|
|
|
|
|
| | MuteSound() |
Overview | Top |
|
|
|
|
| | Stops all sounds and tones from being played.
MuteSound();
|
|
|
|
|
|
|
|
|
|
|
| | UnmuteSound() |
Overview | Top |
|
|
|
|
| | Restores normal operation of sounds and tones.
UnmuteSound();
|
|
|
|
|
|
|
|
|
|
|
| | ClearSound() |
Overview | Top |
|
|
|
|
| | Removes any pending sounds from the sound buffer.
ClearSound();
|
|
|
|
|
|
|
|
|
|
|
| | SelectSounds(group) |
Overview | Top |
|
|
|
|
| | Selects which group of system sounds should be used. The group must be a constant.
SelectSounds(0);
|
|
|
|
|
|
|