Copyright © 2005-2019 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 CD album information from a CDDB server tutorial for further details.

 

 

Syntax

 

[Visual Basic]

Public Function CddbGetAlbumInfo (

nCdDriveIndex as integer,

nInfo as enumCddbAlbumInfo

) as String


 

[C#]

public string CddbGetAlbumInfo (

short nCdDriveIndex,

enumCddbAlbumInfo nInfo

);


 

[C++]

public: string CddbGetAlbumInfo (

short nCdDriveIndex,

enumCddbAlbumInfo nInfo

);


 

Parameter

Description

 

 

nCdDriveIndex

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

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

The value of the nCdDriveIndex parameter was out of range. Use the value returned by the GetCdDrivesCount method in order to know how many CD drive are currently installed on the system.

Valid string

The requested information