This member of RFTone Object is supported on Windows Mobile, Windows CE, Palm, and DOS.
The GetDuration method returns the duration for a specific note in the current RFTone object, measured in cycles per second.
VB
nDuration = object.GetDuration (nTone)
VC++
HRESULT hr = object->GetDuration(short nTone, short *nDuration);
Return Value
nDuration |
The duration of the note in milliseconds. |
Parameters
nTone |
The zero based index value note within the RFTone object that's duration is being returned. Remember, the first note is zero. For example, to return the frequency for the third note in the current RFTone object you would pass a 2. |
Remarks
To return the duration for a note saved within a tone file on an RF device, first set the saved tone file as the current RFTone object using the GetToneFile Method, then use GetDuration Method.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other