Remarks
Given the name of an artist and the title of an album, tries to obtain titles of contained tracks and the related CD cover pictures.
This method obtains exactly the same information returned by the CddbRequestAlbumInfo method but it doesn't need the CD to be physically available inside the CD drive.
When requested information is available the container application is notified through the CallbackForCdDrivesEvents delegate which is invoked with the nEvent parameter set to EV_CDDB_ALBUM_INFO_AVAIL: at this point it will be possible:
As already mentioned, this method call will also try to obtain the CD cover pictures: in case it should find them, the container application is notified through the CallbackForCdDrivesEvents delegate which is invoked with the nEvent parameter set to:
• | EV_CD_COVER_URLS_AVAIL so it will be possible getting the URLs of the CD cover pictures using the GetCdCoverPictureURL method. |
• | EV_CD_COVER_SMALL_FILE_AVAIL, EV_CD_COVER_MEDIUM_FILE_AVAIL and EV_CD_COVER_LARGE_FILE_AVAIL so it will be possible getting the temporary file pathname, containing the downloaded CD cover pictures, using the GetCdCoverPictureFile method. |
See the How to get a CD cover picture tutorial for further details.
Syntax
[Visual Basic]
Public Function CdRequestAlbumInfo (
strArtist as string,
strAlbum as string,
strReserved as string
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes CdRequestAlbumInfo (
string strArtist,
string strAlbum,
string strReserved
);
|
|
[C++]
public: enumErrorCodes CdRequestAlbumInfo (
string strArtist,
string strAlbum,
string strReserved
);
|
|
Parameter
|
Description
|
|
|
strArtist
|
String representing the artist name: if it shouldn't be complete the search session would try finding the best match.
|
strAlbum
|
String representing the album title: if it shouldn't be complete the search session would try finding the best match.
|
strReserved
|
String reserved for future uses
|
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.
|
|