This class describes a net md TOC.
More...
#include <netmd++.h>
|
|
using | DAOFragments = std::vector<DAOFragment> |
| | type to store all DAO track fragments (for fragmented, non empty discs)
|
|
| | CNetMdTOC (int trackCount=0, uint32_t lenInMs=0, uint8_t *data=nullptr) |
| | Constructs a new instance.
|
|
| ~CNetMdTOC () |
| | Destroys the object.
|
| void | import (int trackCount=0, uint32_t lenInMs=0, uint8_t *data=nullptr) |
| | import TOC data
|
| int | addTrack (uint8_t no, uint32_t lengthMs, const std::string &title, const std::time_t &tstamp, bool mono=false) |
| | Adds a track.
|
| int | setDiscTitle (const std::string &title) |
| | Sets the disc title.
|
| int | trackCount () const |
| | get track count
|
| std::string | discTitle () const |
| | get MD title
|
| std::string | trackTitle (int trackNo) const |
| | get track title
|
| std::string | trackInfo (int trackNo) const |
| | get track info
|
| std::string | discInfo () const |
| | get disc info
|
This class describes a net md TOC.
◆ CNetMdTOC()
| netmd::CNetMdTOC::CNetMdTOC |
( |
int | trackCount = 0, |
|
|
uint32_t | lenInMs = 0, |
|
|
uint8_t * | data = nullptr ) |
Constructs a new instance.
- Parameters
-
| [in] | trackCount | The track count |
| [in] | lenInMs | The length in milliseconds |
| data | The TOC data |
◆ addTrack()
| int netmd::CNetMdTOC::addTrack |
( |
uint8_t | no, |
|
|
uint32_t | lengthMs, |
|
|
const std::string & | title, |
|
|
const std::time_t & | tstamp, |
|
|
bool | mono = false ) |
Adds a track.
This function has to be used to split a DAO transferred disc audio track into the parts as on the original disc. This functions has to be called for all tracks in their correct order! Breaking the order will break the TOC!
- Parameters
-
| [in] | no | track number (starting with 1) |
| [in] | lengthMs | The length in milliseconds |
| [in] | title | The track title |
| [in] | tstamp | The time stamp |
| [in] | mono | The mono marker |
- Returns
- 0 -> ok; -1 -> error
◆ discInfo()
| std::string netmd::CNetMdTOC::discInfo |
( |
| ) |
const |
get disc info
- Returns
- disc info
◆ discTitle()
| std::string netmd::CNetMdTOC::discTitle |
( |
| ) |
const |
get MD title
- Returns
- title
◆ import()
| void netmd::CNetMdTOC::import |
( |
int | trackCount = 0, |
|
|
uint32_t | lenInMs = 0, |
|
|
uint8_t * | data = nullptr ) |
import TOC data
- Parameters
-
| [in] | trackCount | The track count |
| [in] | lenInMs | The length in milliseconds |
| data | The TOC data |
◆ setDiscTitle()
| int netmd::CNetMdTOC::setDiscTitle |
( |
const std::string & | title | ) |
|
Sets the disc title.
- Parameters
-
- Returns
- 0 -> ok; -1 -> error
◆ trackCount()
| int netmd::CNetMdTOC::trackCount |
( |
| ) |
const |
get track count
- Returns
- number of tracks
◆ trackInfo()
| std::string netmd::CNetMdTOC::trackInfo |
( |
int | trackNo | ) |
const |
get track info
- Parameters
-
| [in] | trackNo | The track number |
- Returns
- track info
◆ trackTitle()
| std::string netmd::CNetMdTOC::trackTitle |
( |
int | trackNo | ) |
const |
get track title
- Parameters
-
| [in] | trackNo | The track number |
- Returns
- title
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/libnetmd++-1.2.0+git20250617-build/netmd_plusplus-1.2.0+git20250617/include/netmd++.h