Copyright © 2005-2023 MultiMedia Soft

SoundRecognizer.ResultGenresCountGet 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 genres related to the given music result.

 

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 ResultGenresCountGet (

nUniqueId as Int32,

nResultIndex as Int32,

ByRef nCount as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes ResultGenresCountGet (

int nUniqueId,

int nResultIndex,

ref int nCount

);


 

[C++]

public: enumErrorCodes ResultGenresCountGet (

int nUniqueId,

int nResultIndex,

int __gc *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

nCount

Reference that, on return from the method call, will contain the number of genres

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.