Copyright © 2006-2018 MultiMedia Soft

CddbAlbumInfoAvailable event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when the CDDB server returns the CD album information requested through a previous call to the CddbRequestAlbumInfo method or when the Amazon Web Service returns the CD album information requested through a previous call to the CdRequestAlbumInfo method.

 

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

For further details about synchronization through Events see the How to synchronize the container application through events tutorial.

 

 

Syntax

 

[Visual Basic]

Public Event CddbAlbumInfoAvailable As CddbInfoEventHandler


 

[C#]

public event CddbInfoEventHandler CddbAlbumInfoAvailable;


 

[C++]

public: __event CddbInfoEventHandler CddbAlbumInfoAvailable;


 

 

Event Data

 

The event handler receives an argument of type CddbInfoEventArgs having the following parameters:

 

Parameters

Description

 

 

nCdDriveIndex

When the event is generated by a previous call the the CddbRequestAlbumInfo method, it represents the zero-based index of the CD drive that fired the event so its value is 0 or higher. The total number of available CD drives can be obtained using the GetCdDrivesCount method.

 

When the event is generated by a previous call the the CdRequestAlbumInfo method, its value is -1.

bSuccess

Boolean value that specifies if the CDDB information was retrieved successfully.

 

Supported values are the following:

Mnemonic Value

Meaning

false

The request failed

true

The request succeeded and CDDB information is available.

In this case the control can perform the following further requests passing the value of the nCdDriveIndex parameter:

 

Obtain the CD album info through the CddbGetAlbumInfo method.
Get the number of tracks through the GetCdNumTracks method.
Get each track title through the CddbGetTrackTitle method.