Tone.Play (VOLUME vol) Method

Generates the tone as a simple monotonic sound based on a specified volume and the CurrentDuration and CurrentPitch properties of the Tone instance.

Syntax

public int Play( VOLUME Vol )

Parameters

Vol
The tone's volume, subject to range limits defined by Tone.VOLUME. The CurrentVolume property is not affected by the specified Vol value.

Return Value

A result code that indicates either success or a particular fault condition. This value can be tested with helper methods.

More Information

Tone Class