samp_sdi.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:7k
- /*******************************************************************************
- * Copyright(c) Philips Consumer Electronics B.V. 2001
- * The attached material and the information contained therein is proprietary
- * to Philips and is issued only under strict confidentiality arrangements.
- * It shall not be used, reproduced, copied in whole or in part, adapted,
- * modified, or disseminated without a written license of Philips.
- * It must be returned to Philips upon its first request.
- *
- * Project: SA-MP ( Super Audio Media Player )
- * File %name: samp_sdi.h %
- * %version: 9 %
- * %date_modified: Fri May 24 17:57:25 2002 %
- * %derived_by: potm %
- * Creation date: Fri Jun 15 09:42:54 2001
- * First author: klerxm
- *
- * Advanced Systems and Applications Lab - Eindhoven
- *
- * Continuus %full_filespec: samp_sdi.h~9:incl:1 %
- *
- * Description: Exported header file of the SACD Disc Information
- *
- * Change history:
- *
- * Rev Date Who Comments
- * ---- ---------- -------- -----------------------------------------------------
- * 1 2001-06-07 klerxm Initial version
- * 2 2001-06-15 klerxm Removed newlines
- * 3 2001-08-22 potm Changed first parameter of SDI_SetLanguagePreference
- * to UInt8 instead of UInt16.
- * 4 2001-10-19 potm - Removed character set data type
- * - Added pLanguage output parameter to text functions
- * 5 2001-10-30 potm - Added messages from content provider/artist and
- * extra messages to SDI_TrackTextField type
- * - Added prototype of SetAvailableCharSets
- * 6 2002-02-18 potm Changed type of language parameters to
- * SDI_LanguageCodeDef (CR340)
- * 7 2002-05-16 potm Moved SDI_GetNumberOfIndices from this file to
- * sdi_external.c since it is now part of the external
- * interface of SA-MP
- * 8 2002-06-07 klerxm Added 'extern "C"'
- * 9 2003-02-13 potm - Added prototypes of SDI_GetDTCP_Info,
- * SDI_GetSpecVersion and SDI_GetAreaData (CR405)
- * - Added types SDI_Spec_Version and SDI_Area_Data
- * (CR405)
- *
- *******************************************************************************/
- #ifndef _SAMP_SDI_H
- #define _SAMP_SDI_H
- /*******************************************************************************
- * Include Files
- *******************************************************************************/
- #include "Playcoresampsamp_gen.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*******************************************************************************
- * Macro Definitions
- *******************************************************************************/
- /*******************************************************************************
- * Type Definitions
- *******************************************************************************/
- typedef char SAMP(SDI_LanguageCodeDef)[2];
- typedef struct {
- SAMP(UInt16) Year;
- SAMP(UInt8) Month;
- SAMP(UInt8) Day;
- } SAMP(SDI_Date);
- typedef struct {
- SAMP(UInt8) Genre_Table;
- SAMP(UInt16) Genre_Index;
- } SAMP(SDI_Genre_Code);
- typedef struct {
- SAMP(UInt16) Album_Set_Size;
- SAMP(UInt16) Album_Sequence_Number;
- char Album_Catalog_Number[17];
- SAMP(SDI_Genre_Code) Album_Genre[4];
- } SAMP(SDI_Album_Info);
- typedef struct {
- char Disc_Catalog_Number[17];
- SAMP(SDI_Genre_Code) Disc_Genre[4];
- SAMP(SDI_Date) Disc_Date;
- } SAMP(SDI_Disc_Info);
- typedef struct {
- char Country_Code[2];
- char Owner_Code[3];
- char Recording_Year[2];
- char Designation_Code[5];
- } SAMP(SDI_ISRC_Code);
- typedef struct {
- SAMP(SDI_Genre_Code) Genre;
- SAMP(SDI_ISRC_Code) ISRC;
- } SAMP(SDI_Track_Info);
- typedef enum {
- SAMP(NORMAL),
- SAMP(PHONETIC)
- } SAMP(SDI_TextChannelType);
- typedef enum {
- SAMP(ALBUM_TEXT_TITLE),
- SAMP(ALBUM_TEXT_ARTIST),
- SAMP(ALBUM_TEXT_PUBLISHER),
- SAMP(ALBUM_TEXT_COPYRIGHT)
- } SAMP(SDI_AlbumTextField);
-
- typedef enum {
- SAMP(DISC_TEXT_TITLE),
- SAMP(DISC_TEXT_ARTIST),
- SAMP(DISC_TEXT_PUBLISHER),
- SAMP(DISC_TEXT_COPYRIGHT)
- } SAMP(SDI_DiscTextField);
- typedef enum {
- SAMP(AREA_TEXT_NAME),
- SAMP(AREA_TEXT_COPYRIGHT)
- } SAMP(SDI_AreaTextField);
- typedef enum {
- SAMP(TRACK_TEXT_TITLE),
- SAMP(TRACK_TEXT_PERFORMER),
- SAMP(TRACK_TEXT_SONGWRITER),
- SAMP(TRACK_TEXT_COMPOSER),
- SAMP(TRACK_TEXT_ARRANGER),
- SAMP(TRACK_TEXT_MESSAGE),
- SAMP(TRACK_TEXT_EXTRA)
- } SAMP(SDI_TrackTextField);
- typedef struct {
- SAMP(UInt8) Major_Version;
- SAMP(UInt8) Minor_Version;
- } SAMP(SDI_Spec_Version);
- typedef struct {
- SAMP(UInt8) N_Channels;
- SAMP(UInt8) Area_Config;
- SAMP(UInt8) Max_Available_Channels;
- SAMP(UInt8) Area_Mute_Flags;
- } SAMP(SDI_Area_Data);
- /*******************************************************************************
- * Functions Prototypes
- *******************************************************************************/
- SAMP(ErrCode) SAMP(SDI_SetAvailableCharSets)( SAMP(UInt8) nrOfCharSets, SAMP(UInt8) *pCharSetList );
- SAMP(ErrCode) SAMP(SDI_SetLanguagePreference)( SAMP(UInt8) nrOfLanguages, SAMP(SDI_LanguageCodeDef) *pLanguageCodes );
- SAMP(ErrCode) SAMP(SDI_GetAlbumInfo)( SAMP(SDI_Album_Info) *pAlbumInfo );
- SAMP(ErrCode) SAMP(SDI_GetAlbumText)( SAMP(SDI_AlbumTextField) field, SAMP(SDI_TextChannelType) type, SAMP(UInt32) bufferSize, void *pAlbumText, SAMP(UInt8) *pCharSet, SAMP(SDI_LanguageCodeDef) *pLanguage );
- SAMP(ErrCode) SAMP(SDI_GetDiscInfo)( SAMP(SDI_Disc_Info) *pDiscInfo );
- SAMP(ErrCode) SAMP(SDI_GetDiscText)( SAMP(SDI_DiscTextField) field, SAMP(SDI_TextChannelType) type, SAMP(UInt32) bufferSize, void *pDiscText, SAMP(UInt8) *pCharSet, SAMP(SDI_LanguageCodeDef) *pLanguage );
- SAMP(ErrCode) SAMP(SDI_GetAreaText)( SAMP(SACD_Area) area, SAMP(SDI_AreaTextField) field, SAMP(SDI_TextChannelType) type, SAMP(UInt32) bufferSize, void *pAreaText, SAMP(UInt8) *pCharSet, SAMP(SDI_LanguageCodeDef) *pLanguage );
- SAMP(ErrCode) SAMP(SDI_GetTrackInfo)( SAMP(SACD_Area) area, SAMP(UInt8) trackNr, SAMP(SDI_Track_Info) *pTrackInfo );
- SAMP(ErrCode) SAMP(SDI_GetTrackText)( SAMP(SACD_Area) area, SAMP(UInt8) trackNr, SAMP(SDI_TrackTextField) field, SAMP(SDI_TextChannelType) type, SAMP(UInt32) bufferSize, void *pTrackText, SAMP(UInt8) *pCharSet, SAMP(SDI_LanguageCodeDef) *pLanguage );
- SAMP(ErrCode) SAMP(SDI_GetNumberOfIndices)( SAMP(SACD_Area) area, SAMP(UInt8) track, SAMP(UInt8) *pNrOfIndices );
- SAMP(ErrCode) SAMP(SDI_GetDTCP_Info)(SAMP(UInt32) offset, SAMP(UInt32) size, void *pBuffer);
- SAMP(ErrCode) SAMP(SDI_GetSpecVersion)( SAMP(SDI_Spec_Version) *pSpecVersion );
- SAMP(ErrCode) SAMP(SDI_GetAreaData)(SAMP(SACD_Area) area, SAMP(SDI_Area_Data) *pAreaData );
- #ifdef __cplusplus
- }
- #endif
- #endif /* _SAMP_SDI_H */
- /*******************************************************************************
- * End of File
- *******************************************************************************/