CRM64Pro GDK v0.13.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::ConfigMgr

Config Manager class. More...

Detailed Description

Config Manager class.

Public Member Functions

Sint32 info (Sint32 iMode=0)
 Request Configuration Manager information.
Sint32 audioInit (eAudioFreq eAF=AF_DEFAULT, eAudioSample eAS=AS_DEFAULT, eAudioMode eAM=AM_DEFAULT)
 Initialize the audio system.
Sint32 audioStatus (eAudioFreq *eAF=nullptr, eAudioSample *eAS=nullptr, eAudioMode *eAM=nullptr)
 Check audio system status.
Sint32 audioClose ()
 Close the audio system.
Sint32 audioSetDriver (eConfigAudioDriver eCAD)
 Set the audio driver.
eConfigAudioDriver audioGetDriver () const
 Get the audio driver.
const char * audioGetDriverInUse () const
 Get the audio driver name in use.
Sint32 audioSetMasterGain (float fGain)
 Set Master gain (Volume).
float audioGetMasterGain () const
 Get Master gain (Volume).
Sint32 audioSetTagGain (eAudioTrackTag eTag, float fGain)
 Set Gain (Volume) for a specific audio track tag category.
float audioGetTagGain (eAudioTrackTag eTag) const
 Get the current gain for a specific audio track tag category.
MIX_Mixer * audioGetMixer () const
 Get the internal SDL3 Mixer Device handle.
Sint32 create (const string &sName, Uint32 iUnused=0)
 Create a new screen.
Sint32 close (Sint32 idScreen)
 Close and destroy a screen.
Sint32 getNum () const
 Get number of loaded objects.
Sint32 setName (Sint32 idScreen, const string &sName)
 Change the object name.
void reset (Sint32 iMode=0)
 Set all default values, close audio system, remove all existing screens and create the "default" screen.
Screenget (Sint32 idScreen=0)
 Get a pointer to the screen using its handle.
Screenget (SDL_Window *wScreen)
 Get a pointer to the screen using a SDL_Window pointer.
Sint32 save (const string &sConfigXML, const string &sCDC="")
 Save current audio/screens configuration.
Sint32 load (const string &sConfigXML, const string &sCDC="")
 Load audio/screen configuration.
Sint32 setup (const string &sConfigXML, const string &sConfigCDC="", const string &sCustomSetupXML="")
 Open the setup window for configuring audio/screen settings.
Sint32 setup (const string &sConfigXML, Sint32 idConfigCDC, const string &sCustomSetupXML="")
 Open the setup window for configuring audio/screen settings.

Public Attributes

Uint8 iMTFriendly

Member Data Documentation

◆ iMTFriendly

Uint8 CRM64Pro::ConfigMgr::iMTFriendly

When set to 1 or greater, yields to the OS scheduler for at least this many milliseconds after each render frame. Disabled by default (0).