| libMirage Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
#include <mirage-language.h>
MirageLanguage;
struct MirageLanguageClass;
enum MirageLanguagePackTypes;
gint mirage_language_get_code (MirageLanguage *self);
gboolean mirage_language_get_pack_data (MirageLanguage *self,
MirageLanguagePackTypes pack_type,
const gchar **pack_data,
gint *length,
GError **error);
void mirage_language_set_code (MirageLanguage *self,
gint code);
gboolean mirage_language_set_pack_data (MirageLanguage *self,
MirageLanguagePackTypes pack_type,
const gchar *pack_data,
gint length,
GError **error);
MirageLanguage object represents a CD-TEXT language for session or track. It is a container object that stores language code and CD-TEXT pack data for different pack types.
typedef struct _MirageLanguage MirageLanguage;
All the fields in the MirageLanguage structure are private to the MirageLanguage implementation and should never be accessed directly.
struct MirageLanguageClass {
MirageObjectClass parent_class;
};
The class structure for the MirageLanguage type.
MirageObjectClass |
the parent class |
typedef enum {
MIRAGE_LANGUAGE_PACK_TITLE = 0x80,
MIRAGE_LANGUAGE_PACK_PERFORMER = 0x81,
MIRAGE_LANGUAGE_PACK_SONGWRITER = 0x82,
MIRAGE_LANGUAGE_PACK_COMPOSER = 0x83,
MIRAGE_LANGUAGE_PACK_ARRANGER = 0x84,
MIRAGE_LANGUAGE_PACK_MESSAGE = 0x85,
MIRAGE_LANGUAGE_PACK_DISC_ID = 0x86,
MIRAGE_LANGUAGE_PACK_GENRE = 0x87,
MIRAGE_LANGUAGE_PACK_TOC = 0x88,
MIRAGE_LANGUAGE_PACK_TOC2 = 0x89,
MIRAGE_LANGUAGE_PACK_RES_8A = 0x8A,
MIRAGE_LANGUAGE_PACK_RES_8B = 0x8B,
MIRAGE_LANGUAGE_PACK_RES_8C = 0x8C,
MIRAGE_LANGUAGE_PACK_CLOSED_INFO = 0x8D,
MIRAGE_LANGUAGE_PACK_UPC_ISRC = 0x8E,
MIRAGE_LANGUAGE_PACK_SIZE = 0x8F,
} MirageLanguagePackTypes;
CD-TEXT pack types
| Album name and Track titles | |
| Singer/player/conductor/orchestra | |
| Name of the songwriter | |
| Name of the composer | |
| Name of the arranger | |
| Message from content provider or artist | |
| Disc identification information | |
| Genre identification / information | |
| TOC information | |
| Second TOC | |
| Reserved 8A | |
| Reserved 8B | |
| Reserved 8C | |
| For internal use by content provider | |
| UPC/EAN code of album and ISRC for tracks | |
| Size information of the block |
gint mirage_language_get_code (MirageLanguage *self);
Retrieves language's language code.
|
a MirageLanguage |
Returns : |
language code |
gboolean mirage_language_get_pack_data (MirageLanguage *self,MirageLanguagePackTypes pack_type,const gchar **pack_data,gint *length,GError **error);
Retrieves pack data of type pack_type. A pointer to buffer containing pack
data is stored in pack data; the buffer belongs to the object and therefore
should not be modified.
|
a MirageLanguage |
|
pack type. [in] |
|
location to store buffer containing pack data, or NULL. [out][transfer none][allow-none][array length=length]
|
|
location to store length of pack data, or NULL. [out][allow-none]
|
|
location to store error, or NULL. [out][allow-none]
|
Returns : |
TRUE on success, FALSE on failure |
void mirage_language_set_code (MirageLanguage *self,gint code);
Sets language's language code.
|
a MirageLanguage |
|
language code. [in] |
gboolean mirage_language_set_pack_data (MirageLanguage *self,MirageLanguagePackTypes pack_type,const gchar *pack_data,gint length,GError **error);
Sets pack data of type pack_type to data in pack_data. length is length of
data in pack_data. pack_type must be one of MirageLanguagePackTypes.
|
a MirageLanguage |
|
pack type. [in] |
|
pack data. [in][array length=length] |
|
length of pack data. [in] |
|
location to store error, or NULL. [out][allow-none]
|
Returns : |
TRUE on success, FALSE on failure |