This member of RFTone Object is supported on Windows Mobile, Windows CE, Palm, and DOS.
The GetFrequency method returns the frequency of a specific tone in the current RFTone object.
VB
nFreq = object.GetFrequency (nTone)
VC++
HRESULT hr = object->GetFrequency(short nTone, short *nFreq);
Return Value
nFreq |
The variable containing the returned frequency value. This function will return a -1 if an error occurs. Use RFGetLastError to return the generated error code. |
Parameters
nTone |
The index value for the note that's frequency 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 a note frequency stored within a tone file on an RF device, first use the GetToneFile Method to set the tone file as the current tone object within the application, then use GetFrequency Method.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other