Generates the tone as a simple monotonic sound based on a specified pitch, duration and volume.
This static method is used with the class instead of with an object of that class.
public static int Play( int Pitch, int Duration, VOLUME Vol )
Pitch
The tone's frequency specified in cycles-per-second (Hertz), subject to range limits defined by Tone.PITCH. The CurrentPitch property is not altered by the specified Pitch value.
Duration
The tone's duration in milliseconds, subject to range limits defined by Tone.DURATION. The CurrentDuration property is not altered by the specified Duration value.
Vol
The tone's volume, subject to range limits defined by Tone.VOLUME: OFF, LOW, NORMAL, LOUD, or VERY_LOUD. The CurrentVolume property is not affected by the specified Vol value.
A result code that indicates either success or a particular fault condition. This value can be tested with helper methods.