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"
|
|
|
|
|
2024-06-16 09:26:04 -04:00
|
|
|
#include <miniaudio.h>
|
2024-02-13 18:34:14 -05:00
|
|
|
|
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-16 09:26:04 -04:00
|
|
|
MxResult Create(ma_sound* p_sound, const char* p_name, MxS32 p_volume);
|
2024-02-13 18:34:14 -05:00
|
|
|
void Destroy();
|
2024-06-16 09:26:04 -04:00
|
|
|
MxU32 UpdatePosition(ma_sound* p_sound);
|
|
|
|
void FUN_10011a60(ma_sound* p_sound, const char* p_name);
|
2024-06-01 13:45:22 -04:00
|
|
|
void Reset();
|
|
|
|
MxS32 SetDistance(MxS32 p_min, MxS32 p_max);
|
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-16 09:26:04 -04:00
|
|
|
ma_sound* m_sound;
|
|
|
|
LegoROI* m_roi; // 0x0c
|
|
|
|
LegoROI* m_positionROI; // 0x10
|
|
|
|
MxBool m_enabled; // 0x14
|
|
|
|
MxBool m_isActor; // 0x15
|
|
|
|
LegoActor* m_actor; // 0x18
|
|
|
|
double m_frequencyFactor; // 0x20
|
|
|
|
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
|