mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
9e686e2a87
* cmake+ci: run clang-tidy * Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def * Add initial .clang-tidy and fixes * fix file perms * Comment out DESCRIPTION * Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def * Looks like clang is allergic to the libs in the directx5 SDK * Update .clang-tidy * Fix typo in .clang-tidy * Attempt to generate an action error * Revert "Attempt to generate an action error" This reverts commit 96c4c65fedbc4102837f4bcbbb9ee83a7d14cba3. * cmake: test with -Wparentheses + optionally with -Werror * ci: -k0 is a Ninja argument * Use -Werror only for msys2 builds * cmake: only emit warnings for specific warnings * cmake: and don't do -Werror/-WX anymore * Fix warnings * Fix mingw warnings --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
43 lines
1 KiB
C++
43 lines
1 KiB
C++
#ifndef MXDSSOUND_H
|
|
#define MXDSSOUND_H
|
|
|
|
#include "mxdsmediaaction.h"
|
|
|
|
// VTABLE: LEGO1 0x100dcdd0
|
|
// SIZE 0xc0
|
|
class MxDSSound : public MxDSMediaAction {
|
|
public:
|
|
MxDSSound();
|
|
~MxDSSound() override;
|
|
|
|
void CopyFrom(MxDSSound& p_dsSound);
|
|
MxDSSound& operator=(MxDSSound& p_dsSound);
|
|
|
|
// FUNCTION: LEGO1 0x100c9330
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x101025e4
|
|
return "MxDSSound";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100c9340
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxDSSound::ClassName()) || MxDSMediaAction::IsA(p_name);
|
|
}
|
|
|
|
MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
void Deserialize(MxU8** p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
|
MxDSAction* Clone() override; // vtable+2c;
|
|
|
|
inline MxS32 GetVolume() const { return m_volume; }
|
|
|
|
// SYNTHETIC: LEGO1 0x100c9450
|
|
// MxDSSound::`scalar deleting destructor'
|
|
|
|
private:
|
|
MxU32 m_sizeOnDisk;
|
|
MxS32 m_volume; // 0xbc
|
|
};
|
|
|
|
#endif // MXDSSOUND_H
|