Copyright © 2005-2023 MultiMedia Soft

SoundRecognizer.ResultInfoGet 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 recognized music results.

 

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

nUniqueId as Int32,

nResultIndex as Int32,

nInfo as enumRecognizeSoundInfo

) as String


 

[C#]

public string ResultInfoGet (

int nUniqueId,

int nResultIndex,

enumRecognizeSoundInfo nInfo

);


 

[C++]

public: string ResultInfoGet (

int nUniqueId,

int nResultIndex,

enumRecognizeSoundInfo nInfo

);


 

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

nInfo

The requested information code.

Supported values are the following:

Mnemonic Value

Value

Meaning

RECON_SOUND_INFO_TITLE

0

Title of the requested music result

RECON_SOUND_INFO_LABEL

1

Label of the requested music result

RECON_SOUND_INFO_DATE

2

Release date of the requested music result

RECON_SOUND_INFO_ISRC

3

ISRC code of the requested music result

RECON_SOUND_INFO_UPC

4

UPC code of the requested music result

RECON_SOUND_INFO_DURATION

5

Duration of the requested music result expressed in milliseconds

RECON_SOUND_INFO_ALBUM_NAME

6

Name of the album of the requested music result

RECON_SOUND_INFO_YOUTUBE_ID

7

If available, Youtube identifier of the requested music result

 

 

Return value

 

Value

Meaning

 

 

Empty string

An error occurred or information not available, check the LastError property value in order to get the error code

Valid string

String containing the requested information