CallbackForSoundRecognizerEventsSet method |
|
Remarks
Sets the function of the CallbackForSoundRecognizerEvents callback delegate which notifies about sound recognition related events.
For further details about callback delegates see the How to synchronize the container application with the API tutorial.
For further details about the use of the sound recognizer see the SoundRecognizerMan class.
For details about sound recognition refer to the How to recognize music and obtain related information tutorial.
Syntax
[Visual Basic] Public Function CallbackForSoundRecognizerEventsSet ( function as CallbackForSoundRecognizerEvents ) as enumErrorCodes |
[C#] public enumErrorCodes CallbackForSoundRecognizerEventsSet ( CallbackForSoundRecognizerEvents function ); |
[C++] public: enumErrorCodes CallbackForSoundRecognizerEventsSet ( CallbackForSoundRecognizerEvents function ); |
Parameter |
Description |
|
|
function |
Callback function |
when using the API from Unmanaged C++ through COM interaction, where the client application is totally unaware about .NET delegates, you should use the "Ptr" version of the method which allows passing the pointer to the callback function:
[Unmanaged C++] enumErrorCodes CallbackTracksboardDropFileSetPtr ( (UINT_PTR) functionPointer ); |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred. Check the LastError property value in order to see the last error. |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |