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

This commit is contained in:
Christian Semmler
2024-06-01 13:45:22 -04:00
committed by GitHub
parent 919a3f5c49
commit ac4e8da662
8 changed files with 42 additions and 19 deletions

View File

@@ -20,8 +20,8 @@ public:
MxResult Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char* p_name, MxS32 p_volume);
void Destroy();
MxU32 UpdatePosition(LPDIRECTSOUNDBUFFER p_directSoundBuffer);
void FUN_10011ca0();
MxS32 FUN_10011cf0(undefined4, undefined4);
void Reset();
MxS32 SetDistance(MxS32 p_min, MxS32 p_max);
// SYNTHETIC: LEGO1 0x10011650
// Lego3DSound::`scalar deleting destructor'

View File

@@ -37,7 +37,7 @@ public:
MxResult FUN_10006a30(const char* p_str, MxBool);
void FUN_10006b80();
void FUN_10006be0();
void FUN_10006cb0(undefined4 p_und1, undefined4 p_und2);
void SetDistance(MxS32 p_min, MxS32 p_max);
// SYNTHETIC: LEGO1 0x10006610
// LegoCacheSound::`scalar deleting destructor'
@@ -47,7 +47,7 @@ private:
LPDIRECTSOUNDBUFFER m_dsBuffer; // 0x08
undefined m_unk0xc[4]; // 0x0c
Lego3DSound m_unk0x10; // 0x10
Lego3DSound m_sound; // 0x10
undefined* m_unk0x40; // 0x40
undefined4 m_unk0x44; // 0x44
MxString m_string0x48; // 0x48

View File

@@ -1,14 +1,14 @@
#ifndef LEGOWORLD_H
#define LEGOWORLD_H
#include "legocachesoundlist.h"
#include "legoentity.h"
#include "legoentitylist.h"
#include "legopathcontrollerlist.h"
#include "mxpresenterlist.h"
#include "roi/legoroi.h"
class LegoCacheSoundList;
class LegoCameraController;
class LegoEntityList;
class LegoPathBoundary;
class LegoHideAnimPresenter;