Copyright © 2006-2018 MultiMedia Soft

CddbRequestAlbumInfo method

Previous pageReturn to chapter overviewNext page

Remarks

 

Requests the CDDB album info for the CD currently inside the given CD drive: this call needs an active Internet connection.

 

When the CD info will be available, the CallbackForRecordersEvents delegate is invoked with the nEvent parameter set to EV_REC_CDDB_ALBUM_INFO_AVAIL and at this point it will be possible:

 

Obtaining the CD album info through the CddbGetAlbumInfo method.
Getting each CD track title through the CddbGetTrackTitle method.

 

This method call will also try to obtain the CD cover pictures available on the Amazon web site: in case it should find them, the CallbackForRecordersEvents delegate is invoked with the nEvent parameter set to

 

EV_REC_CD_COVER_URLS_AVAIL: notifies that the URL pointing to a certain CD cover picture on the Amazon catalogue is available and can be obtained through a call to the GetCdCoverPictureURL method. It's important to note that if one of these pictures should be missing on the Amazon web server, a valid URL will be in any case returned.
EV_REC_D_COVER_SMALL_FILE_AVAIL, EV_REC_CD_COVER_MEDIUM_FILE_AVAIL and EV_REC_CD_COVER_LARGE_FILE_AVAIL:  notify that a certain CD cover picture has been downloaded from the the Amazon catalogue and is now available locally: the local absolute pathname of the picture can at this point be obtained through a call to the GetCdCoverPictureFile method. It's important to note that the downloaded picture files are temporarily stored inside the system defined "Temp" directory and are automatically deleted when the container application is closed.

 

See the How to get Audio CD info using CDDB servers and Amazon catalogue tutorial for further details.

 

 

Syntax

 

[Visual Basic]

Public Function CddbRequestAlbumInfo (

nCdDriveIndex as Int16,

nServerIndex as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes CddbRequestAlbumInfo (

Int16 nCdDriveIndex,

Int16 nServerIndex

);


 

[C++]

public: enumErrorCodes CddbRequestAlbumInfo (

Int16 nCdDriveIndex,

Int16 nServerIndex

);


 

 

Parameter

Description

 

 

nCdDriveIndex

Number representing the zero-based index of the involved CD drive

nServerIndex

Number representing the zero-based index of the CDDB server that will be used in order to obtain the CD album information.

The list of available CDDB servers can be obtained through the CddbRequestServersList method.

 

 

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.