Copyright © 2006-2023 MultiMedia Soft

CddbGetAlbumInfo method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves a specific CDDB information about the CD currently inside the given CD drive.

 

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

 

 

Syntax

 

[Visual Basic]

control.CddbGetAlbumInfo (

nCdDriveIndex as integer,

nInfo as enumCddbAlbumInfo

) as string


 

[C++]

LPCTSTR control.CddbGetAlbumInfo (

short nCdDriveIndex,

short nInfo

);


 

 

Parameter

Description

 

 

nCdDriveIndex

When CD album info is obtained through a previous call the the CddbRequestAlbumInfo method, this parameter represents the zero-based index of the CD drive containing the Audio CD. Installed CD drives can be enumerated using the GetCdDrivesCount method and their friendly description can be retrieved through the GetCdDriveDesc method.

 

When CD album info is obtained through a previous call the the CdRequestAlbumInfo method, set this value to -1.

nInfo

Number representing the requested information code.

Supported values are the following:

Mnemonic value

Numeric value

Meaning

CDDB_ALBUM_TITLE

0

The CD album title

CDDB_ALBUM_ARTIST

1

The CD album artist

CDDB_ALBUM_YEAR

2

The CD album year

CDDB_ALBUM_GENRE

3

The CD album genre

CDDB_ALBUM_CLIENT_INFO

4

The CD album client info

 

 

Return value

 

Value

Meaning

 

 

Empty string

An error occurred. Check the LastError property value in order to see the last error.

Valid string

The requested information