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.
|frequency||The desired tone frequency, in Hz. |
|duration||The desired tone duration, in ms. |
|volume||The desired tone volume. |
|loop||A boolean flag indicating whether to play the tone repeatedly. |