isle/LEGO1/lego/legoomni/include/lego3dsound.h
Christian Semmler 375ac29b9b
Implement/match Lego3DSound::Create (#981)
* Implement/match Lego3DSound::Create

* Add space

* Naming

* Changes
2024-06-01 18:23:48 +02:00

44 lines
1.1 KiB
C++

#ifndef LEGO3DSOUND_H
#define LEGO3DSOUND_H
#include "decomp.h"
#include "mxtypes.h"
#include <dsound.h>
class LegoActor;
class LegoROI;
// VTABLE: LEGO1 0x100d5778
// SIZE 0x30
class Lego3DSound {
public:
Lego3DSound();
virtual ~Lego3DSound();
void Init();
MxResult Create(LPDIRECTSOUNDBUFFER p_directSoundBuffer, const char* p_name, MxS32 p_volume);
void Destroy();
undefined4 FUN_100118e0(LPDIRECTSOUNDBUFFER p_directSoundBuffer);
void FUN_10011ca0();
MxS32 FUN_10011cf0(undefined4, undefined4);
// SYNTHETIC: LEGO1 0x10011650
// Lego3DSound::`scalar deleting destructor'
private:
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