1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
SqMod/source/Misc/Sound.hpp

142 lines
4.1 KiB
C++
Raw Normal View History

2015-09-30 02:56:11 +02:00
#ifndef _MISC_SOUND_HPP_
#define _MISC_SOUND_HPP_
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
class CSound
{
public:
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound();
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound(SQInt32 id);
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound(const CSound & x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound(CSound && x);
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
~CSound();
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound & operator= (const CSound & x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound & operator= (CSound && x);
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound operator+ (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound operator- (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound operator* (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
CSound operator/ (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator == (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator != (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator < (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator > (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator <= (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
bool operator >= (const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInteger Cmp(const CSound & x) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
operator SQInt32 () const;
/* --------------------------------------------------------------------------------------------
* ...
*/
operator bool () const;
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInt32 GetID() const;
/* --------------------------------------------------------------------------------------------
* ...
*/
void SetID(SQInt32 id);
/* --------------------------------------------------------------------------------------------
* ...
*/
void Play() const;
2015-09-30 02:56:11 +02:00
protected:
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
SQInt32 m_ID;
};
} // Namespace:: SqMod
#endif // _MISC_SOUND_HPP_