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

54 lines
2.6 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 {
// ------------------------------------------------------------------------------------------------
class CSound
{
public:
// --------------------------------------------------------------------------------------------
CSound() noexcept;
CSound(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
CSound(const CSound & x) noexcept;
CSound(CSound && x) noexcept;
// --------------------------------------------------------------------------------------------
~CSound();
// --------------------------------------------------------------------------------------------
CSound & operator= (const CSound & x) noexcept;
CSound & operator= (CSound && x) noexcept;
// --------------------------------------------------------------------------------------------
CSound operator+ (const CSound & x) const noexcept;
CSound operator- (const CSound & x) const noexcept;
CSound operator* (const CSound & x) const noexcept;
CSound operator/ (const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
bool operator == (const CSound & x) const noexcept;
bool operator != (const CSound & x) const noexcept;
bool operator < (const CSound & x) const noexcept;
bool operator > (const CSound & x) const noexcept;
bool operator <= (const CSound & x) const noexcept;
bool operator >= (const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
SQInteger Cmp(const CSound & x) const noexcept;
// --------------------------------------------------------------------------------------------
operator SQInt32 () const noexcept;
operator bool () const noexcept;
// --------------------------------------------------------------------------------------------
SQInt32 GetID() const noexcept;
void SetID(SQInt32 id) noexcept;
// --------------------------------------------------------------------------------------------
void Play() const noexcept;
protected:
// --------------------------------------------------------------------------------------------
SQInt32 m_ID;
};
} // Namespace:: SqMod
#endif // _MISC_SOUND_HPP_