bool PlayGeneratedTone(AudioSignalType, double, double, AudioStreamType)

Plays a tone.

Security

Trust Level Required: Full trust

Parameters

Name Description
signalType AudioSignalType
The type of tone signal to generate.
frequencyInHertz double
In Hertz, the frequence of the tone to generate.
durationInSeconds double
In seconds, the length of time to play the tone for.
streamType AudioStreamType
If specified, selects which audio stream to use when playing the file.

Return

Returns true if successful, false otherwise.

Examples


if (!KioApp.PlayGeneratedTone(0, 2600, 5, 1))
     alert('Failed to play tone.');
    

Requirements

KioWare for Android version 3.16 or greater.