2024-05-30 10:27:18 -04:00
|
|
|
#ifndef LEGO3DSOUND_H
|
|
|
|
#define LEGO3DSOUND_H
|
2024-02-13 18:34:14 -05:00
|
|
|
|
|
|
|
#include "decomp.h"
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
|
|
|
#include <dsound.h>
|
|
|
|
|
2024-06-01 12:23:48 -04:00
|
|
|
class LegoActor;
|
2024-05-03 12:19:12 -04:00
|
|
|
class LegoROI;
|
|
|
|
|
2024-02-13 18:34:14 -05:00
|
|
|
// VTABLE: LEGO1 0x100d5778
|
|
|
|
// SIZE 0x30
|
2024-05-30 10:27:18 -04:00
|
|
|
class Lego3DSound {
|
2024-02-13 18:34:14 -05:00
|
|
|
public:
|
2024-05-30 10:27:18 -04:00
|
|
|
Lego3DSound();
|
|
|
|
virtual ~Lego3DSound();
|
2024-02-13 18:34:14 -05:00
|
|
|
|
|
|
|
void Init();
|
2024-06-01 12:23:48 -04:00
|
|
|
MxResult Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char* p_name, MxS32 p_volume);
|
2024-02-13 18:34:14 -05:00
|
|
|
void Destroy();
|
2024-06-01 13:38:13 -04:00
|
|
|
MxU32 UpdatePosition(LPDIRECTSOUNDBUFFER p_directSoundBuffer);
|
2024-02-13 18:34:14 -05:00
|
|
|
void FUN_10011ca0();
|
2024-05-09 09:57:38 -04:00
|
|
|
MxS32 FUN_10011cf0(undefined4, undefined4);
|
2024-02-13 18:34:14 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10011650
|
2024-05-30 10:27:18 -04:00
|
|
|
// Lego3DSound::`scalar deleting destructor'
|
2024-02-13 18:34:14 -05:00
|
|
|
|
|
|
|
private:
|
2024-06-01 12:23:48 -04:00
|
|
|
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
|
2024-02-13 18:34:14 -05:00
|
|
|
};
|
|
|
|
|
2024-06-01 12:23:48 -04:00
|
|
|
// GLOBAL: LEGO1 0x100db6c0
|
|
|
|
// IID_IDirectSound3DBuffer
|
|
|
|
|
2024-05-30 10:27:18 -04:00
|
|
|
#endif // LEGO3DSOUND_H
|