Implement/match Lego3DSound::Create (#981)

* Implement/match Lego3DSound::Create

* Add space

* Naming

* Changes
This commit is contained in:
Christian Semmler
2024-06-01 12:23:48 -04:00
committed by GitHub
parent df20b05510
commit 375ac29b9b
5 changed files with 97 additions and 37 deletions

View File

@@ -6,6 +6,7 @@
#include <dsound.h>
class LegoActor;
class LegoROI;
// VTABLE: LEGO1 0x100d5778
@@ -16,7 +17,7 @@ public:
virtual ~Lego3DSound();
void Init();
MxResult Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char*, MxS32 p_volume);
MxResult Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char* p_name, MxS32 p_volume);
void Destroy();
undefined4 FUN_100118e0(LPDIRECTSOUNDBUFFER p_directSoundBuffer);
void FUN_10011ca0();
@@ -26,15 +27,18 @@ public:
// Lego3DSound::`scalar deleting destructor'
private:
undefined m_unk0x04[4]; // 0x04
LPDIRECTSOUNDBUFFER m_dsBuffer; // 0x08
LegoROI* m_unk0x0c; // 0x0c
undefined4 m_unk0x10; // 0x10
MxBool m_unk0x14; // 0x14
MxBool m_unk0x15; // 0x15
undefined4 m_unk0x18; // 0x18
undefined m_unk0x1c[0x10]; // 0x1c
MxS32 m_volume; // 0x2c
LPDIRECTSOUND3DBUFFER m_ds3dBuffer; // 0x08
LegoROI* m_roi; // 0x0c
LegoROI* m_positionROI; // 0x10
MxBool m_enabled; // 0x14
MxBool m_isActor; // 0x15
LegoActor* m_actor; // 0x18
double m_frequencyFactor; // 0x20
DWORD m_dwFrequency; // 0x28
MxS32 m_volume; // 0x2c
};
// GLOBAL: LEGO1 0x100db6c0
// IID_IDirectSound3DBuffer
#endif // LEGO3DSOUND_H