2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDSSOUND_H
|
|
|
|
#define MXDSSOUND_H
|
|
|
|
|
|
|
|
#include "mxdsmediaaction.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dcdd0
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0xc0
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDSSound : public MxDSMediaAction {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSSound();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxDSSound() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void CopyFrom(MxDSSound& p_dsSound);
|
|
|
|
MxDSSound& operator=(MxDSSound& p_dsSound);
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c9330
|
2024-07-04 19:06:32 -04:00
|
|
|
const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x101025e4
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxDSSound";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c9340
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxDSSound::ClassName()) || MxDSMediaAction::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxU32 GetSizeOnDisk() override; // vtable+18;
|
2024-04-03 12:06:53 -04:00
|
|
|
void Deserialize(MxU8*& p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
2024-02-01 15:42:10 -05:00
|
|
|
MxDSAction* Clone() override; // vtable+2c;
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS32 GetVolume() const { return m_volume; }
|
2023-11-05 10:07:28 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100c9450
|
|
|
|
// MxDSSound::`scalar deleting destructor'
|
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
private:
|
2024-06-01 17:29:37 -04:00
|
|
|
MxU32 m_sizeOnDisk; // 0xb8
|
|
|
|
MxS32 m_volume; // 0xbc
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSSOUND_H
|