This member of Class WaveLinkTone is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The PlayTone Method plays a tone file saved on a device.
Syntax
public void PlayTone(String fileName)
throws WaveLinkError,
IllegalArgumentException
Parameters
fileName |
The tone configuration file |
Throws
IllegalArgumentException
WaveLinkError
Remarks
WaveLinkTone objects must be saved as tone files on the device with the StoreTone Method before they may be played.
Example
WaveLinkTone toneIface = new WaveLinkTone();
try {
toneIface.ClearTones();
toneIface.AddTone(440, 200);
toneIface.AddTone(440, 200);
toneIface.StoreTone("ErrorBeep");
.
.
.
// Play the tone
toneIface.PlayTone("ErrorBeep");
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other