#include <sidtune.h>
Collaboration diagram for sidTune:

Public Member Functions | |
| IMPORT_C | sidTune (const char *sidTuneFileName) |
| sidTune (const char *sidTuneFileName, const char **fileNameExt) | |
| sidTune (ubyte *oneFileFormatSidtune, udword sidtuneLength) | |
| virtual | ~sidTune () |
| bool | open (const char *sidTuneFileName) |
| bool | load (ubyte *oneFileFormatSidtune, udword sidtuneLength) |
| IMPORT_C void | getInfo (struct sidTuneInfo &) |
| return the information about the sidtune in the outInfo struct | |
| virtual bool | setInfo (struct sidTuneInfo &) |
| ubyte | getSongSpeed () |
| ubyte | returnSongSpeed () |
| uword | getPlayAddr () |
| uword | returnPlayAddr () |
| operator bool () | |
| bool | getStatus () |
| bool | returnStatus () |
| bool | saveC64dataFile (const char *destFileName, bool overWriteFlag=false) |
| bool | saveSIDfile (const char *destFileName, bool overWriteFlag=false) |
| bool | savePSIDfile (const char *destFileName, bool overWriteFlag=false) |
| bool | saveSID2file (const char *destFileName, bool overWriteFlag=false) |
Public Attributes | |
| bool | status |
| sidTuneInfo | info |
Protected Member Functions | |
| void | convertOldStyleSpeedToTables (udword oldStyleSpeed) |
| bool | placeSidTuneInC64mem (ubyte *c64buf) |
| udword | loadFile (const char *fileName, ubyte **bufferRef) |
| bool | cacheRawData (void *sourceBuffer, udword sourceBufLen) |
| bool | getCachedRawData (void *destBuffer, udword destBufLen) |
| virtual bool | PSID_fileSupport (void *buffer, udword bufLen) |
| virtual bool | MUS_fileSupport (void *buffer, udword bufLen) |
| virtual void | MUS_installPlayer (ubyte *c64buf) |
| virtual bool | INFO_fileSupport (void *dataBuffer, udword dataBufLen, void *infoBuffer, udword infoBufLen) |
| virtual bool | SID_fileSupport (void *dataBuffer, udword dataBufLen, void *sidBuffer, udword sidBufLen) |
Protected Attributes | |
| ubyte | songSpeed [classMaxSongs] |
| uword | songLength [classMaxSongs] |
| char | infoString [infoStringNum][infoStringLen] |
| ubyte | fillUpWidth |
| bool | isCached |
| ubyte * | cachePtr |
| udword | cacheLen |
| ubyte * | fileBuf |
| ubyte * | fileBuf2 |
| udword | fileOffset |
| const char *const * | fileNameExtensions |
Private Member Functions | |
| void | safeConstructor () |
| void | safeDestructor () |
| void | stdinConstructor () |
| void | filesConstructor (const char *) |
| uword | selectSong (uword selectedSong) |
| First check, whether a song is valid. | |
| void | setIRQaddress (uword address) |
| void | deleteFileBuffers () |
| bool | getSidtuneFromFileBuffer (ubyte *buffer, udword bufferLen) |
| void | acceptSidTune (const char *dataFileName, const char *infoFileName, ubyte *dataFileBuf, udword dataLen) |
| bool | createNewFileName (char **destStringPtr, const char *sourceName, const char *sourceExt) |
Friends | |
| bool | sidEmuInitializeSongOld (emuEngine &, sidTune &, uword songNum) |
|
|
Definition at line 70 of file sidtune.cpp. References deleteFileBuffers(), filesConstructor(), safeConstructor(), and stdinConstructor(). |
|
||||||||||||
|
Definition at line 113 of file sidtune.cpp. References deleteFileBuffers(), fileNameExtensions, filesConstructor(), safeConstructor(), and stdinConstructor(). |
|
||||||||||||
|
Definition at line 93 of file sidtune.cpp. References sidTuneInfo::dataFileLen, getSidtuneFromFileBuffer(), info, safeConstructor(), status, sidTuneInfo::statusString, and text_fileTooLong. |
|
|
Definition at line 138 of file sidtune.cpp. References safeDestructor(). |
|
||||||||||||||||||||
|
Definition at line 626 of file sidtune.cpp. References sidTuneInfo::c64dataLen, cacheRawData(), sidTuneInfo::dataFileLen, sidTuneInfo::dataFileName, fileOffset, info, sidTuneInfo::infoFileName, myStrDup(), sidTuneInfo::songs, sidTuneInfo::startSong, status, sidTuneInfo::statusString, and text_notEnoughMemory. Referenced by filesConstructor(). |
|
||||||||||||
|
Definition at line 451 of file sidtune.cpp. References cacheLen, cachePtr, info, isCached, status, sidTuneInfo::statusString, text_noErrors, text_notEnoughMemory, and ubyte. Referenced by acceptSidTune(), and getSidtuneFromFileBuffer(). |
|
|
Definition at line 870 of file sidtune.cpp. References info, sidTuneInfo::songs, and songSpeed. Referenced by INFO_fileSupport(), PSID_fileSupport(), and SID_fileSupport(). |
|
||||||||||||||||
|
Definition at line 668 of file sidtune.cpp. References fileExtOfFilename(), fileNameWithoutPath(), info, status, sidTuneInfo::statusString, and text_notEnoughMemory. Referenced by filesConstructor(). |
|
|
Definition at line 434 of file sidtune.cpp. References fileBuf, and fileBuf2. Referenced by open(), safeDestructor(), sidTune(), and stdinConstructor(). |
|
|
Definition at line 693 of file sidtune.cpp. References acceptSidTune(), createNewFileName(), sidTuneInfo::dataFileLen, fileBuf, fileBuf2, fileNameExtensions, sidTuneInfo::formatString, info, INFO_fileSupport(), loadFile(), MUS_fileSupport(), PSID_fileSupport(), SID_fileSupport(), status, sidTuneInfo::statusString, text_na, text_noDataFile, text_unrecognizedFormat, and udword. |
|
||||||||||||
|
Definition at line 474 of file sidtune.cpp. References cacheLen, cachePtr, sidTuneInfo::dataFileLen, info, status, sidTuneInfo::statusString, text_fatalInternal, text_noErrors, and ubyte. |
|
|
return the information about the sidtune in the outInfo struct
Definition at line 181 of file sidtune.cpp. References info. Referenced by CSidPlayerStatusView::Draw(), CSidPlayAppUi::HandleCommandL(), CSidPlayer::InitL(), InitMainL(), main(), CSidPlayer::SongDelta(), CSidPlayer::SongSelect(), and CSidPlayAppUi::UpdateCbaL(). |
|
|
Definition at line 117 of file sidtune.h. References info, sidTuneInfo::playAddr, and uword. Referenced by returnPlayAddr(). |
|
||||||||||||
|
Definition at line 592 of file sidtune.cpp. References buffer, sidTuneInfo::c64dataLen, cacheRawData(), fileOffset, sidTuneInfo::formatString, info, MUS_fileSupport(), PSID_fileSupport(), status, sidTuneInfo::statusString, text_na, text_noErrors, and text_unrecognizedFormat. Referenced by load(), sidTune(), and stdinConstructor(). |
|
|
Definition at line 114 of file sidtune.h. References info, sidTuneInfo::songSpeed, and ubyte. Referenced by returnSongSpeed(). |
|
|
Definition at line 133 of file sidtune.h. References status. Referenced by returnStatus(). |
|
||||||||||||||||||||
|
||||||||||||
|
Definition at line 146 of file sidtune.cpp. References sidTuneInfo::dataFileLen, getSidtuneFromFileBuffer(), info, safeConstructor(), safeDestructor(), status, sidTuneInfo::statusString, and text_fileTooLong. |
|
||||||||||||
|
Definition at line 280 of file sidtune.cpp. References ELOG1, ELOG2, info, status, sidTuneInfo::statusString, text_cantLoadFile, text_cantOpenFile, text_noErrors, text_notEnoughMemory, ubyte, and udword. Referenced by filesConstructor(). |
|
||||||||||||
|
Definition at line 12 of file mus_.cpp. References c, smartPtrBase< TP >::fail(), fileOffset, sidTuneInfo::formatString, HLTcmd, info, sidTuneInfo::infoString, infoString, sidTuneInfo::initAddr, sidTuneInfo::loadAddr, sidTuneInfo::musPlayer, sidTuneInfo::numberOfInfoStrings, sidTuneInfo::playAddr, readEndian(), sidTuneInfo::songs, songSpeed, sidTuneInfo::startSong, text_format, ubyte, and udword. Referenced by filesConstructor(), and getSidtuneFromFileBuffer(). |
|
|
Definition at line 193 of file mus_.cpp. References readEndian(), sidplayer, status, and uword. Referenced by sidEmuInitializeSongOld(). |
|
|
Definition at line 167 of file sidtune.cpp. References deleteFileBuffers(), filesConstructor(), safeConstructor(), safeDestructor(), and status. |
|
|
Definition at line 132 of file sidtune.h. References status. |
|
|
Definition at line 244 of file sidtune.cpp. References sidTuneInfo::c64dataLen, cachePtr, fileOffset, info, isCached, sidTuneInfo::loadAddr, status, sidTuneInfo::statusString, text_dataTooLong, and udword. Referenced by sidEmuInitializeSongOld(). |
|
||||||||||||
|
|
Definition at line 118 of file sidtune.h. References getPlayAddr(), and uword. Referenced by sidEmu::sidEmuFillBuffer(). |
|
|
Definition at line 115 of file sidtune.h. References getSongSpeed(), and ubyte. Referenced by sidEmu::sidEmuFillBuffer(). |
|
|
Definition at line 134 of file sidtune.h. References getStatus(). Referenced by sidEmu::sidEmuFillBuffer(). |
|
|
|
Definition at line 535 of file sidtune.cpp. References cachePtr, sidTuneInfo::commentString, sidTuneInfo::dataFileName, deleteFileBuffers(), DTOR, info, sidTuneInfo::infoFileName, sidTuneInfo::numberOfCommentStrings, status, and udword. Referenced by load(), open(), and ~sidTune(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
First check, whether a song is valid. Then copy any song-specific variable information such a speed/clock setting to the info structure. This is a private member function. It is used only by player.cpp. Definition at line 191 of file sidtune.cpp. References sidTuneInfo::clockSpeed, sidTuneInfo::currentSong, info, selectedSong, sidTuneInfo::songs, songSpeed, sidTuneInfo::songSpeed, sidTuneInfo::speedString, sidTuneInfo::startSong, sidTuneInfo::statusString, text_NTSC_CIA, text_NTSC_VBI, text_PAL_CIA, text_PAL_VBI, text_songNumberExceed, and uword. Referenced by sidEmuInitializeSongOld(). |
|
|
Definition at line 176 of file sidtune.cpp. Referenced by main(). |
|
|
Definition at line 237 of file sidtune.cpp. References info, and sidTuneInfo::irqAddr. Referenced by sidEmuInitializeSongOld(). |
|
||||||||||||||||||||
|
|
Definition at line 566 of file sidtune.cpp. References sidTuneInfo::dataFileLen, deleteFileBuffers(), fileBuf, getSidtuneFromFileBuffer(), info, status, sidTuneInfo::statusString, text_fileTooLong, text_notEnoughMemory, ubyte, and uword. Referenced by sidTune(). |
|
||||||||||||||||
|
Definition at line 86 of file player.cpp. |
|
|
Definition at line 168 of file sidtune.h. Referenced by cacheRawData(), getCachedRawData(), and safeConstructor(). |
|
|
Definition at line 167 of file sidtune.h. Referenced by cacheRawData(), getCachedRawData(), placeSidTuneInC64mem(), safeConstructor(), and safeDestructor(). |
|
|
Definition at line 172 of file sidtune.h. Referenced by deleteFileBuffers(), filesConstructor(), safeConstructor(), and stdinConstructor(). |
|
|
Definition at line 173 of file sidtune.h. Referenced by deleteFileBuffers(), filesConstructor(), and safeConstructor(). |
|
|
Definition at line 178 of file sidtune.h. Referenced by filesConstructor(), safeConstructor(), and sidTune(). |
|
|
Definition at line 175 of file sidtune.h. Referenced by acceptSidTune(), getSidtuneFromFileBuffer(), INFO_fileSupport(), MUS_fileSupport(), placeSidTuneInC64mem(), PSID_fileSupport(), safeConstructor(), and SID_fileSupport(). |
|
|
Definition at line 164 of file sidtune.h. Referenced by safeConstructor(). |
|
|
|
Definition at line 162 of file sidtune.h. Referenced by INFO_fileSupport(), MUS_fileSupport(), PSID_fileSupport(), safeConstructor(), and SID_fileSupport(). |
|
|
Definition at line 166 of file sidtune.h. Referenced by cacheRawData(), and placeSidTuneInC64mem(). |
|
|
|
|
|
Definition at line 158 of file sidtune.h. Referenced by convertOldStyleSpeedToTables(), MUS_fileSupport(), safeConstructor(), and selectSong(). |
|
|
Definition at line 153 of file sidtune.h. Referenced by acceptSidTune(), cacheRawData(), createNewFileName(), filesConstructor(), getCachedRawData(), getSidtuneFromFileBuffer(), getStatus(), load(), loadFile(), MUS_installPlayer(), open(), operator bool(), placeSidTuneInC64mem(), safeConstructor(), safeDestructor(), sidEmuInitializeSongOld(), sidTune(), and stdinConstructor(). |
1.3.3