metaforce/Runtime/Audio/CSfxHandle.hpp

28 lines
575 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CSFXHANDLE_HPP__
#define __URDE_CSFXHANDLE_HPP__
2015-08-20 02:52:07 +00:00
2016-05-03 08:27:28 +00:00
#include "RetroTypes.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-20 02:52:07 +00:00
{
class CSfxHandle
{
2016-05-03 08:27:28 +00:00
static u32 mRefCount;
u32 x0_index = 0;
public:
CSfxHandle() = default;
CSfxHandle(const CSfxHandle&) = default;
CSfxHandle(u32 idx);
void operator =(const CSfxHandle& other);
bool operator !=(const CSfxHandle& other) const;
bool operator ==(const CSfxHandle& other) const;
u32 GetIndex() const { return x0_index; }
static CSfxHandle NullHandle() { return {}; }
2015-08-20 02:52:07 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CSFXHANDLE_HPP__