NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char PlayToneEx ( unsigned int  frequency,
unsigned int  duration,
byte  volume,
bool  loop 
)
inline

Play a tone with extra options.

Play a single tone of the specified frequency, duration, and volume. The frequency is in Hz (see the Tone constants group). The duration is in 1000ths of a second (see the Time constants group). Volume should be a number from 0 (silent) to 4 (loudest). Play the tone repeatedly if loop is true.

Parameters
frequencyThe desired tone frequency, in Hz.
durationThe desired tone duration, in ms.
volumeThe desired tone volume.
loopA boolean flag indicating whether to play the tone repeatedly.
Examples:
ex_PlayToneEx.nxc.