mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
40 lines
1 KiB
C++
40 lines
1 KiB
C++
#ifndef MXDSSOUND_H
|
|
#define MXDSSOUND_H
|
|
|
|
#include "mxdsmediaaction.h"
|
|
|
|
// VTABLE: LEGO1 0x100dcdd0
|
|
// SIZE 0xc0
|
|
class MxDSSound : public MxDSMediaAction {
|
|
public:
|
|
MxDSSound();
|
|
virtual ~MxDSSound() override;
|
|
|
|
void CopyFrom(MxDSSound& p_dsSound);
|
|
MxDSSound& operator=(MxDSSound& p_dsSound);
|
|
|
|
// FUNCTION: LEGO1 0x100c9330
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// GLOBAL: LEGO1 0x101025e4
|
|
return "MxDSSound";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100c9340
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxDSSound::ClassName()) || MxDSMediaAction::IsA(p_name);
|
|
}
|
|
|
|
virtual MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
virtual void Deserialize(char** p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
|
virtual MxDSAction* Clone() override; // vtable+2c;
|
|
|
|
inline MxS32 GetVolume() const { return m_volume; }
|
|
|
|
private:
|
|
MxU32 m_sizeOnDisk;
|
|
MxS32 m_volume; // 0xbc
|
|
};
|
|
|
|
#endif // MXDSSOUND_H
|