SoundRecognizer.ResultArtistRoleInfoGet method |
|
Remarks
After a sound recognition request, started through a previous call to one between the SoundRecognizer.StartOnPlayer, SoundRecognizer.StartOnFile or SoundRecognizer.StartOnMemory methods, obtains information about the given role for the given artist.
For further details about the use of the sound recognizer see the SoundRecognizer object section.
For details about sound recognition refer to the How to recognize music and obtain related information tutorial.
Syntax
[Visual Basic] control.SoundRecognizer.ResultArtistRoleInfoGet ( nUniqueId as Long, nResultIndex as Integer, nArtistIndex as Integer, nRoleIndex as Integer ) as String |
[C++] LPCTSTR control.SoundRecognizer.ResultArtistRoleInfoGet ( long nUniqueId, short nResultIndex, short nArtistIndex, short nRoleIndex ); |
Parameter |
Description |
|
|
nUniqueId |
The unique identifier of the recognition session returned by a previous call to one between the SoundRecognizer.StartOnPlayer, SoundRecognizer.StartOnFile or SoundRecognizer.StartOnMemory methods |
nResultIndex |
Zero-based index of the music result; the total number of music results can be obtained through the SoundRecognizer.ResultsCountGet method |
nArtistIndex |
Zero-based index of the artist; the total number of artists can be obtained through the SoundRecognizer.ResultArtistsCountGet method |
nRoleIndex |
Zero-based index of the role; the total number of roles for the given artist can be obtained through the SoundRecognizer.ResultArtistRolesCountGet method |
Return value
Value |
Meaning |
|
|
Valid string |
String containing the requested role |
Empty string |
An error occurred or the requested information is not availableu, check the LastError property value in order to see the error code meaning file |