isle-portable/LEGO1/omni/include/mxdssound.h
Christian Semmler c038d8d46e
Updates from isledecomp/isle (#18)
* Implement/match Lego3DSound::Create (#981)

* Implement/match Lego3DSound::Create

* Add space

* Naming

* Changes

* Name/rename functions in LegoCharacterManager (#982)

* Name/rename functions in LegoCharacterManager

* Name flag

* Implement/match Lego3DSound::UpdatePosition (#983)

* Implement/match Lego3DSound::SetDistance and Reset (#984)

* Implement/match LegoSoundManager::UpdateListener (#985)

* Implement/match LegoCacheSound::Create and LegoLoadCacheSoundPresenter::StreamingTickle (#986)

* Implement/match LegoCacheSound::Create

* Naming

* Fix naming

* Fix parens

* Implement/match LegoCacheSound::Play and Lego3DSound::FUN_10011a60 (#987)

* Implement/match LegoCacheSound::Play and Lego3DSound::FUN_10011a60

* Update names

* Update
2024-06-02 17:26:15 +02:00

44 lines
1.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; // 0xb8
MxS32 m_volume; // 0xbc
};
#endif // MXDSSOUND_H