|
libsidplayfp
0.3.5
|
#include <SidTuneMod.h>
Public Member Functions | |
| SidTuneMod (const char *fileName) | |
| const char * | createMD5 (char *md5=0) |
Public Member Functions inherited from SidTune | |
| SidTune (const char *fileName, const char **fileNameExt=0, const bool separatorIsSlash=false) | |
| SidTune (const uint_least8_t *oneFileFormatSidtune, const uint_least32_t sidtuneLength) | |
| void | setFileNameExtensions (const char **fileNameExt) |
| bool | load (const char *fileName, const bool separatorIsSlash=false) |
| bool | read (const uint_least8_t *sourceBuffer, const uint_least32_t bufferLen) |
| const SidTuneInfo & | operator[] (const uint_least16_t songNum) |
| uint_least16_t | selectSong (const uint_least16_t songNum) |
| const SidTuneInfo & | getInfo () |
| void | getInfo (SidTuneInfo &) |
| operator bool () | |
| bool | getStatus () |
| bool | isStereo () |
| bool | placeSidTuneInC64mem (uint_least8_t *c64buf) |
| bool | saveC64dataFile (const char *destFileName, const bool overWriteFlag=false) |
| bool | saveSIDfile (const char *destFileName, const bool overWriteFlag=false) |
| bool | savePSIDfile (const char *destFileName, const bool overWriteFlag=false) |
| void | fixLoadAddress (const bool force=false, uint_least16_t initAddr=0, uint_least16_t playAddr=0) |
| bool | loadFile (const char *fileName, Buffer_sidtt< const uint_least8_t > &bufferRef) |
| bool | saveToOpenFile (std::ofstream &toFile, const uint_least8_t *buffer, uint_least32_t bufLen) |
Additional Inherited Members | |
Protected Member Functions inherited from SidTune | |
| void | convertOldStyleSpeedToTables (uint_least32_t speed, int clock=SIDTUNE_CLOCK_PAL) |
| Convert 32-bit PSID-style speed word to internal tables. | |
| virtual int | convertPetsciiToAscii (SmartPtr_sidtt< const uint_least8_t > &, char *) |
| bool | checkCompatibility (void) |
| Check compatibility details are sensible. | |
| bool | checkRelocInfo (void) |
| Check for valid relocation information. | |
| bool | resolveAddrs (const uint_least8_t *c64data) |
| Common address resolution procedure. | |
| virtual LoadStatus | PSID_fileSupport (Buffer_sidtt< const uint_least8_t > &dataBuf) |
| virtual bool | PSID_fileSupportSave (std::ofstream &toFile, const uint_least8_t *dataBuffer) |
| virtual LoadStatus | SID_fileSupport (Buffer_sidtt< const uint_least8_t > &dataBuf, Buffer_sidtt< const uint_least8_t > &sidBuf) |
| virtual bool | SID_fileSupportSave (std::ofstream &toFile) |
| virtual LoadStatus | MUS_fileSupport (Buffer_sidtt< const uint_least8_t > &musBuf, Buffer_sidtt< const uint_least8_t > &strBuf) |
| LoadStatus | MUS_load (Buffer_sidtt< const uint_least8_t > &musBuf, bool init=false) |
| LoadStatus | MUS_load (Buffer_sidtt< const uint_least8_t > &musBuf, Buffer_sidtt< const uint_least8_t > &strBuf, bool init=false) |
| virtual bool | MUS_detect (const void *buffer, const uint_least32_t bufLen, uint_least32_t &voice3Index) |
| virtual bool | MUS_mergeParts (Buffer_sidtt< const uint_least8_t > &musBuf, Buffer_sidtt< const uint_least8_t > &strBuf) |
| virtual void | MUS_setPlayerAddress () |
| virtual void | MUS_installPlayer (uint_least8_t *c64buf) |
| virtual LoadStatus | INFO_fileSupport (Buffer_sidtt< const uint_least8_t > &dataBuf, Buffer_sidtt< const uint_least8_t > &infoBuf) |
| virtual LoadStatus | PRG_fileSupport (const char *fileName, Buffer_sidtt< const uint_least8_t > &dataBuf) |
| virtual LoadStatus | X00_fileSupport (const char *fileName, Buffer_sidtt< const uint_least8_t > &dataBuf) |
Protected Attributes inherited from SidTune | |
| SidTuneInfo | info |
| bool | status |
| uint_least8_t | songSpeed [SIDTUNE_MAX_SONGS] |
| uint_least8_t | clockSpeed [SIDTUNE_MAX_SONGS] |
| uint_least16_t | songLength [SIDTUNE_MAX_SONGS] |
| char | infoString [SIDTUNE_MAX_CREDIT_STRINGS][SIDTUNE_MAX_CREDIT_STRLEN] |
| holds text info from the format headers etc. | |
| bool | isSlashedFileName |
| uint_least32_t | fileOffset |
| For files with header: offset to real data. | |
| uint_least16_t | musDataLen |
| Needed for MUS/STR player installation. | |
| Buffer_sidtt< const uint_least8_t > | cache |
Static Protected Attributes inherited from SidTune | |
| static const char ** | fileNameExtensions = defaultFileNameExt |
| Filename extensions to append for various file types. | |
| static const char * | txt_songNumberExceed = "SIDTUNE WARNING: Selected song number was too high" |
| static const char * | txt_empty = "SIDTUNE ERROR: No data to load" |
| static const char * | txt_unrecognizedFormat = "SIDTUNE ERROR: Could not determine file format" |
| static const char * | txt_noDataFile = "SIDTUNE ERROR: Did not find the corresponding data file" |
| static const char * | txt_notEnoughMemory = "SIDTUNE ERROR: Not enough free memory" |
| static const char * | txt_cantLoadFile = "SIDTUNE ERROR: Could not load input file" |
| static const char * | txt_cantOpenFile = "SIDTUNE ERROR: Could not open file for binary input" |
| static const char * | txt_fileTooLong = "SIDTUNE ERROR: Input data too long" |
| static const char * | txt_dataTooLong = "SIDTUNE ERROR: Size of music data exceeds C64 memory" |
| static const char * | txt_cantCreateFile = "SIDTUNE ERROR: Could not create output file" |
| static const char * | txt_fileIoError = "SIDTUNE ERROR: File I/O error" |
| static const char * | txt_VBI = "VBI" |
| static const char * | txt_CIA = "CIA 1 Timer A" |
| static const char * | txt_noErrors = "No errors" |
| static const char * | txt_na = "N/A" |
| static const char * | txt_badAddr = "SIDTUNE ERROR: Bad address data" |
| static const char * | txt_badReloc = "SIDTUNE ERROR: Bad reloc data" |
| static const char * | txt_corrupt = "SIDTUNE ERROR: File is incomplete or corrupt" |
SidTuneMod A wrapper around SidTune class which provides the ability to calculate the tune's md5 hash to match against songlenth DB.
| const char * SidTuneMod::createMD5 | ( | char * | md5 = 0 | ) |
Calculates the MD5 hash of the tune. Not providing an md5 buffer will cause the internal one to be used. If provided, buffer must be SIDTUNE_MD5_LENGTH + 1
1.8.1.1