![]() |
CRM64Pro GDK v0.13.0
A free cross-platform game development kit built on top of SDL 3.0
|
Audio Track Manager class. More...
Audio Track Manager class.
Public Member Functions | |
| Sint32 | info (Sint32 iMode=0) |
| Request AudioTrack Manager information. | |
| Sint32 | getNum () const |
| Get number of loaded objects. | |
| AudioTrack * | get (Sint32 idAudio=0) |
| Get a pointer to the AudioTrack using its handler. | |
| Sint32 | close (Sint32 idAudio=0) |
| Close and destroy an AudioTrack. | |
| Sint32 | setName (Sint32 idAudio, const string &sName) |
| Change the object name. | |
| Sint32 | stopAll () |
| Immediately stop all active audio tracks. | |
| Sint32 | fadeOutAll (Sint32 iTimeMS=1000) |
| Fade out all active audio tracks to silence, then stop. | |
| Sint32 | pauseAll () |
| Pause all active audio tracks. | |
| Sint32 | resumeAll () |
| Resume all paused audio tracks. | |
| Sint32 | stopTag (eAudioTrackTag eTag) |
| Stop all tracks of a specific audio track tag category. | |
| Sint32 | fadeOutTag (eAudioTrackTag eTag, Sint32 iTimeMS=1000) |
| Fade out all tracks of a specific audio track tag category. | |
| Sint32 | pauseTag (eAudioTrackTag eTag) |
| Pause all tracks of a specific audio track tag category. | |
| Sint32 | resumeTag (eAudioTrackTag eTag) |
| Resume all tracks of a specific audio track tag category. | |
| void | setKeepSourceData (Sint32 iKeep) |
| Set the global policy for keeping raw source data in memory. | |
| Sint32 | getKeepSourceData () const |
| Get the current policy for keeping raw source data. | |
| Sint32 | loadFromFile (const string &sFile, const string &sName="", eAudioTrackTag eTag=ATT_SFX, eAudioLoadMode eMode=ALM_AUTO, Sint32 iUnique=0) |
| Load an AudioTrack from an external file. | |
| Sint32 | load (const string &sFileCDC, const string &sName, Sint32 iUnique=0) |
| Load an AudioTrack from a CDC file (by file name). | |
| Sint32 | load (Sint32 idCDC, const string &sName, Sint32 iUnique=0) |
| Load an AudioTrack from a CDC file (by ID). | |
| Sint32 | load (void *pBuffer, Sint32 iSize, const string &sName, const string &sFormat, eAudioTrackTag eTag=ATT_SFX) |
| Load an AudioTrack from a raw memory buffer. | |
| Sint32 | remove (Sint32 idCDC, const string &sName) |
| Remove an AudioTrack stored in a CDC file. | |
| Sint32 | exist (Sint32 idCDC, const string &sName) |
| Check if an AudioTrack is stored in a CDC file. | |