Copyright © 2001-2023 MultiMedia Soft

SoundRecognizer.ResultArtistRolesCountGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

After a sound recognition request, started through a previous call to one between the SoundRecognizer.StartOnPlayer, SoundRecognizer.StartOnFile or SoundRecognizer.StartOnMemory methods, obtains the number of roles related to 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.ResultArtistRolesCountGet (

nUniqueId as Long,

nResultIndex as Integer,

nArtistIndex as Integer,

nCount as Integer

) as enumErrorCodes


 

[C++]

short control.SoundRecognizer.ResultArtistRolesCountGet (

long nUniqueId,

short nResultIndex,

short nArtistIndex,

short nCount

);


 

 

 

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

nCount

Reference that, on return from the method call, will contain the number of roles related to the given artist

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful