Pre-resize fillparent

This commit is contained in:
2018-08-13 22:22:10 -04:00
parent 58fa6f0503
commit 353dc21750
95 changed files with 478 additions and 437 deletions
@@ -17,7 +17,7 @@ cAudio::~cAudio()
CleanUp();
}
//Functions
/// Functions
/*static*/ cAudio& cAudio::Inst()
{
if (sp_inst == nullptr)
@@ -70,7 +70,7 @@ void cAudio::MusicPlay()
}
///Sets
/// Sets
void cAudio::setRate( const unsigned long int rate /*= 22050*/ )
{
m_rate = rate;
@@ -91,7 +91,7 @@ void cAudio::setBuffers( const unsigned long int buffers /*= 4096*/ )
m_buffers = buffers;
}
///Gets
/// Gets
const bool cAudio::IsInit() const
{
bool rtn = false;
@@ -17,7 +17,7 @@ namespace AudioEngine {
~cAudio();
public:
//Functions
/// Functions
static cAudio& Inst();
static void Delete();
@@ -34,7 +34,7 @@ namespace AudioEngine {
void MusicPlay();
///Set
/// Set
/* Sets the rate */
void setRate( const unsigned long int rate = 22050 );
/* Sets the audio format */
@@ -45,7 +45,7 @@ namespace AudioEngine {
/* Sets the buffer */
void setBuffers( const unsigned long int buffers = 4096 );
///Get
/// Get
/* Gets return true if Audio was initialized */
const bool IsInit() const;
/* Gets the rate */
@@ -60,13 +60,13 @@ namespace AudioEngine {
private:
private:
///Variables
unsigned long int m_rate;// = 22050;
unsigned long int m_format;// = AUDIO_S16;
unsigned long int m_channels;// = 2;
unsigned long int m_buffers;// = 4096;
/// Variables
unsigned long int m_rate;/// = 22050;
unsigned long int m_format;/// = AUDIO_S16;
unsigned long int m_channels;/// = 2;
unsigned long int m_buffers;/// = 4096;
static cAudio* sp_inst;// = nullptr;
static cAudio* sp_inst;/// = nullptr;
};/// END CLASS DEFINITION cAudio
}/// END NAMESPACE DEFINITION AudioEngine
#endif/// END IFNDEF _CAUDIO_HPP_
@@ -14,7 +14,7 @@ cMusic::cMusic(const cMusic& copy)
cMusic::~cMusic()
{}
///Functions
/// Functions
/* Plays the music if loaded */
void cMusic::PlayMusic()
{}
@@ -32,7 +32,7 @@ void cMusic::FideOut(const unsigned int time /*= 1000*/) const
}
/* private:*/
///Functions
/// Functions
void cMusic::LoadMusic()
{}
@@ -22,7 +22,7 @@ namespace AudioEngine {
cMusic( const cMusic& copy );
~cMusic();
///Functions
/// Functions
/* Plays the music if loaded */
void PlayMusic();
/* Fades in the music for time */
@@ -31,15 +31,15 @@ namespace AudioEngine {
void FideOut( const unsigned int time = 1000 ) const;
private:
///Functions
/// Functions
void LoadMusic();
void UnloadMusic();
private:
///Variables
/// Variables
Mix_Music* mp_music;
unsigned char m_volume;// = 255
unsigned char m_volume;/// = 255
};/// END CLASS DEFINITION cMusic
@@ -24,7 +24,7 @@ namespace AudioEngine {
cSound( const cSound& copy );
~cSound();
///Functions
/// Functions
/* Plays the sound if loaded */
void PlaySound();
/* Fades in the sound for time */
@@ -32,7 +32,7 @@ namespace AudioEngine {
/* Fades out the sound for time */
void FadeOut( const unsigned int time = 1000 ) const;
///Sets
/// Sets
/* Sets the directory of the sound */
void setDir( const cString& dir );
/* Sets the file name of the sound */
@@ -51,7 +51,7 @@ namespace AudioEngine {
void setLoops( const long int loops = -1 );
///Gets
/// Gets
/* Gets the directory of the sound */
const cString& getDir() const;
/* Gets the file name of the sound */
@@ -68,16 +68,16 @@ namespace AudioEngine {
const long int getLoops() const;
private:
///Functions
/// Functions
void LoadSound();
void UnloadSound();
private:
///Variables
Mix_Chunk* mp_sound;// = nullptr
/// Variables
Mix_Chunk* mp_sound;/// = nullptr
cString m_dir;// = ""
cString m_fileName;// = ""
cString m_dir;/// = ""
cString m_fileName;/// = ""
unsigned char m_volume;// = 255