247 #include <functional> 547 int moveTrack(uint16_t from, uint16_t to);
568 int createGroup(
const std::string& title,
int first,
int last);
637 int trackTitle(uint16_t track, std::string& title);
710 int setTrackTitle(uint16_t trackNo,
const std::string& title);
764 int finalizeTOC(
bool reset =
false, uint8_t resetWait = 15);
796 CMDiscHeader* mpDiscHeader;
802 CNetMdSecure* mpSecure;
808 std::mutex mMutexHotplug;
854 void import(
int trackCount = 0, uint32_t lenInMs = 0, uint8_t* data =
nullptr);
872 int addTrack(uint8_t no, uint32_t lengthMs,
const std::string& title,
const std::time_t& tstamp,
bool mono =
false);
913 std::string
trackInfo(
int trackNo)
const;
930 uint32_t mLengthInMs;
SP mono.
Definition: netmd++.h:257
int discCapacity(DiscCapacity &dcap)
get disc capacity
int setDiscTitle(const std::string &title)
Sets the disc title.
NetMdTime total
Definition: netmd++.h:341
std::vector< DAOFragment > DAOFragments
type to store all DAO track fragments (for fragmented, non empty discs)
Definition: netmd++.h:831
SP upload.
Definition: netmd++.h:365
std::string getDeviceName() const
Gets the device name.
success
Definition: netmd++.h:265
std::vector< uint8_t > NetMDByteVector
byte vector
Definition: netmd++.h:375
int sendAudioFile(const std::string &filename, const std::string &title, DiskFormat otf)
Sends an audio track.
uint8_t frame
frame
Definition: netmd++.h:330
a fragment used in DAO track
Definition: netmd++.h:824
LP2.
Definition: netmd++.h:256
NetMD time.
Definition: netmd++.h:325
minidisc responded with 08 response
Definition: netmd++.h:269
NetMDByteVector readUTOCSector(UTOCSector s)
Reads an utoc sector.
uint8_t minute
minute
Definition: netmd++.h:328
~CNetMdApi()
Destroys the object.
track times
Definition: netmd++.h:279
int mSeconds
time in seconds
Definition: netmd++.h:282
TrackProtection
type safe protection flags
Definition: netmd++.h:287
int mTenthSecs
time in 10ms
Definition: netmd++.h:283
NetMdTime available
Definition: netmd++.h:345
dont do on-the-fly encoding
Definition: netmd++.h:259
int writeUTOCSector(UTOCSector s, const NetMDByteVector &data)
Writes an utoc sector.
Structure to hold the capacity information of a disc.
Definition: netmd++.h:334
full width titles
Definition: netmd++.h:319
not supported
Definition: netmd++.h:273
int deleteGroup(int group)
delete a group
PCM to mono.
Definition: netmd++.h:366
std::string trackInfo(int trackNo) const
get track info
static void setLogLevel(int severity)
Sets the log level.
CNetMdTOC(int trackCount=0, uint32_t lenInMs=0, uint8_t *data=nullptr)
Constructs a new instance.
half width titles
Definition: netmd++.h:317
int addTrack(uint8_t no, uint32_t lengthMs, const std::string &title, const std::time_t &tstamp, bool mono=false)
Adds a track.
critical information
Definition: netmd++.h:309
std::string trackTitle(int trackNo) const
get track title
bool nativeMonoUploadSupported()
is native mono upload supported?
int initHotPlug()
init libusb hotplug (native or emulation)
needed for log parcing!
Definition: netmd++.h:310
try again
Definition: netmd++.h:275
static void setLogStream(std::ostream &os)
Sets the log stream.
int moveTrack(uint16_t from, uint16_t to)
move a track (number)
bool pcm2MonoSupported()
is PCM to mono supported?
~CNetMdTOC()
Destroys the object.
int createGroup(const std::string &title, int first, int last)
Creates a group.
uint16_t hour
hour
Definition: netmd++.h:327
any other error
Definition: netmd++.h:272
int16_t mFirst
first track
Definition: netmd++.h:354
AudioEncoding
type safe encoding flags
Definition: netmd++.h:295
uint8_t second
second
Definition: netmd++.h:329
uint32_t mEnd
end group
Definition: netmd++.h:827
USB execution.
Definition: netmd++.h:368
no features
Definition: netmd++.h:364
std::ostream & operator<<(std::ostream &o, const TrackTime &tt)
format helper for TrackTime
bool spUploadSupported()
is SP upload supported?
information
Definition: netmd++.h:307
int discTitle(std::string &title)
get disc title
DiskFormat
disk format
Definition: netmd++.h:253
int setDiscTitle(const std::string &title)
Sets the disc title.
This class describes a net md TOC.
Definition: netmd++.h:820
std::string mName
group name
Definition: netmd++.h:356
int deleteTrack(uint16_t track)
delete track
void registerForHotplugEvents(EvtCallback cb)
register hotplug callback function
UTOCSector
TOC sector names.
Definition: netmd++.h:314
some unidentified TOC sector #2
Definition: netmd++.h:321
int trackFlags(uint16_t track, TrackProtection &flags)
get track flags
int startHBSession(uint32_t features)
start homebrew
This class describes a C++ NetMD access library.
Definition: netmd++.h:442
track group
Definition: netmd++.h:351
int addTrackToGroup(int track, int group)
Adds a track to group.
LP4.
Definition: netmd++.h:255
int finalizeTOC(bool reset=false, uint8_t resetWait=15)
finalize TOC through exploit
NetMdErr
NetMD errors.
Definition: netmd++.h:263
HomebrewFeatures
NetMD homebrew features.
Definition: netmd++.h:362
int mGid
group id
Definition: netmd++.h:353
void endHBSession(uint32_t features)
stop homebrew session
int16_t mLast
last track
Definition: netmd++.h:355
int trackCount()
request track count
int setGroupTitle(uint16_t group, const std::string &title)
Sets the group title.
int trackTime(int trackNo, TrackTime &trackTime)
get track time
std::function< void(bool)> EvtCallback
hotplug callback function signature
Definition: netmd++.h:382
int trackBitRate(uint16_t track, AudioEncoding &encoding, uint8_t &channel)
get track bitrate data
general USB error
Definition: netmd++.h:266
int setTrackTitle(uint16_t trackNo, const std::string &title)
Sets the track title.
interim
Definition: netmd++.h:274
bool pcmSpeedupSupported()
is PCM speedup supportd
int delTrackFromGroup(int track, int group)
remove track from group
time stamps
Definition: netmd++.h:318
std::string discInfo() const
get disc info
int discFlags()
request disc flags
parameter error
Definition: netmd++.h:271
int prepareTOCManip()
prepare TOC manipulation
timeout while waiting for response
Definition: netmd++.h:268
position and addresses of audio data
Definition: netmd++.h:316
bool otfEncodeSupported()
is on the fly encoding supported by device
minidisc responded with 0A response
Definition: netmd++.h:270
PCM speedup.
Definition: netmd++.h:367
std::string discTitle() const
get MD title
some unidentified TOC sector #1
Definition: netmd++.h:320
more serious
Definition: netmd++.h:308
int initDevice()
Initializes the device.
SP stereo.
Definition: netmd++.h:258
NetMDByteVector & operator+=(NetMDByteVector &a, const NetMDByteVector &b)
Addition assignment operator for NetMDByteVector.
bool tocManipSupported()
is TOC manipulation supported?
Definition: netmd++.h:250
NetMdTime recorded
Time allready recorded on the disc.
Definition: netmd++.h:337
debug information
Definition: netmd++.h:306
CNetMdApi()
Constructs a new instance.
typelog
log severity
Definition: netmd++.h:304
uint32_t mStart
start group
Definition: netmd++.h:826
std::vector< Group > Groups
netmd groups
Definition: netmd++.h:372
player not ready for command
Definition: netmd++.h:267
int trackCount() const
get track count
int trackTitle(uint16_t track, std::string &title)
get track title
Groups groups()
get MD track groups
int mMinutes
time in minutes
Definition: netmd++.h:281