PrimoBurner(tm) for C++
4.6
CD, DVD and Blu-ray Software Development Kit
|
The CDText interface is used to manipulate the CD-TEXT data of an audio CD. More...
#include <PrimoBurnerAPI.h>
Inherits Reference.
Public Member Functions | |
virtual CDTextCodePage::Enum | codePage () const =0 |
Returns the code page used by CDText for CD-TEXT encoding/decoding. More... | |
virtual int | count () const =0 |
The count method gets the number of CD-TEXT items. More... | |
virtual bool_t | getRawData (uint8_t **rawDataBuffer, uint16_t *bufferSize) const =0 |
Obtains a pointer to the raw CD-TEXT data buffer of an CDText object. More... | |
virtual const char_t * | item (CDTextType::Enum type, int index) const =0 |
The item method retrieves a specific CD text entry for specific track number. More... | |
virtual CDTextLanguage::Enum | language () const =0 |
Gets the CD-TEXT language identifier. More... | |
virtual void | setCodePage (CDTextCodePage::Enum codePage)=0 |
Sets the code page to use when encoding/decoding CD-TEXT strings. More... | |
virtual bool_t | setItem (CDTextType::Enum type, int index, const char_t *text)=0 |
The setItem method sets a specific CD text entry for specific track number. More... | |
virtual void | setLanguage (CDTextLanguage::Enum languageId)=0 |
Sets the CD-TEXT language. More... | |
virtual bool_t | setRawData (uint8_t *data, uint16_t size)=0 |
Sets raw CD-TEXT data into the CDText buffer. More... | |
Public Member Functions inherited from Reference | |
virtual int32_t | release () const =0 |
Releases the instance. More... | |
virtual int32_t | retain () const =0 |
Retains the instance. More... | |
virtual int32_t | retainCount () const =0 |
Returns the current reference count. More... | |
The CDText interface is used to manipulate the CD-TEXT data of an audio CD.
CD Text is an extension of the existing audio CD standard that adds the ability to store text information like album titles, artist names, and song titles on a music CD. This information is stored in such a way that it doesn't interfere with the normal operation of any CD players or CDROM drives. You could store up to 5,000 characters with alphabet/numbers , and about 2,500 characters with Kanji on a single CD. Not all devices support CD Text though. To find out if a particular device supports CD-TEXT use the canReadCDText method of the CDFeatures interface.
|
pure virtual |
Returns the code page used by CDText for CD-TEXT encoding/decoding.
|
pure virtual |
The count method gets the number of CD-TEXT items.
|
pure virtual |
Obtains a pointer to the raw CD-TEXT data buffer of an CDText object.
rawDataBuffer | [out] Address of a variable that receives a pointer to the buffer which contains the raw CD-TEXT data. The buffer is read only and should not be written to. |
bufferSize | [out] Pointer to uint16_t data type that receives the size, in bytes, of the buffer. |
|
pure virtual |
The item method retrieves a specific CD text entry for specific track number.
type | The type of the CD-TEXT information that is requested |
index | The index of the track for which the CD text data is requested. Set this parameter to 0 for the album wide information like album artist, album title. Use index from 1 to 99 to retrieve the CD text for all audio tracks. The value of this parameter should be in the 0 to 99 range. |
The CDTextType::Genre (and CDTextType::GenreText) and CDTextType::DiscId attributes can be requested only when nIndex is set to 0. This method will fail if you try to retrieve the genre or the disc id of a track with index greater than 0.
|
pure virtual |
Gets the CD-TEXT language identifier.
|
pure virtual |
Sets the code page to use when encoding/decoding CD-TEXT strings.
The default value is CDTextCodePage::System. This method should be called before CDText::setItem or CDText::item is used. It is preferable that the method be called once during the lifetime of the CDText object.
codePage | The identifier of the code page to use for encoding/decoding CD-TEXT strings. |
|
pure virtual |
The setItem method sets a specific CD text entry for specific track number.
The Genre and CDTextType::DiscId attributes can only be set only when nIndex is 0. This method will fail if you try to set the genre or the disc id of a track with index greater than 0.
type | The type of the CD Text that should be set. |
index | The track number for which you want to set the CD text data. Set this parameter to 0 for the album wide text entries. Use index from 1 to 99 to set the CD text for each track on the CD. The value of this parameter should be in the 0 to 99 range. |
text | The CD Text data. This parameter must point to a valid zero terminated string. You could store up to 5,000 characters with alphabet/numbers , and about 2,500 characters with Kanji on a single CD. When you set the CDTextType::Genre attribute text parameter should be set to the text representation of the CD-TEXT genre code. For a complete list of genre codes see CDTextGenreCode::Enum enumeration. When burning an audio CD with CD text where the genre code is not set or is set to an invalid value (For example "abc") the CDText object would perform as if the genre code is set to "0". |
|
pure virtual |
Sets the CD-TEXT language.
The default value is Unknown
languageId | Language identifier |
|
pure virtual |