2023-06-19 01:36:07 -04:00
|
|
|
#ifndef MXSOUNDMANAGER_H
|
|
|
|
#define MXSOUNDMANAGER_H
|
|
|
|
|
2023-10-05 03:47:37 -04:00
|
|
|
#include "decomp.h"
|
2023-10-31 10:22:01 -04:00
|
|
|
#include "mxatomid.h"
|
2023-09-19 10:42:39 -04:00
|
|
|
#include "mxaudiomanager.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-05 03:47:37 -04:00
|
|
|
#include <dsound.h>
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc128
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x3c
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxSoundManager : public MxAudioManager {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxSoundManager();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxSoundManager() override; // vtable+0x00
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void Destroy() override; // vtable+0x18
|
|
|
|
void SetVolume(MxS32 p_volume) override; // vtable+0x2c
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxResult Create(MxU32 p_frequencyMS, MxBool p_createThread); // vtable+0x30
|
2023-11-24 12:09:53 -05:00
|
|
|
virtual void Pause(); // vtable+0x34
|
|
|
|
virtual void Resume(); // vtable+0x38
|
2023-10-07 13:12:59 -04:00
|
|
|
|
2023-11-19 12:10:49 -05:00
|
|
|
inline LPDIRECTSOUND GetDirectSound() { return m_directSound; }
|
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
MxS32 FUN_100aecf0(MxU32 p_undefined);
|
2023-11-24 12:09:53 -05:00
|
|
|
|
2024-02-02 20:16:57 -05:00
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
void Init();
|
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2023-10-31 10:22:01 -04:00
|
|
|
MxPresenter* FUN_100aebd0(const MxAtomId& p_atomId, MxU32 p_objectId);
|
2023-10-05 03:47:37 -04:00
|
|
|
|
2023-10-26 07:19:59 -04:00
|
|
|
LPDIRECTSOUND m_directSound; // 0x30
|
2023-10-24 19:38:27 -04:00
|
|
|
LPDIRECTSOUNDBUFFER m_dsBuffer; // 0x34
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined m_unk0x38[4];
|
2023-06-19 01:36:07 -04:00
|
|
|
};
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100ae7b0
|
|
|
|
// MxSoundManager::`scalar deleting destructor'
|
|
|
|
|
2023-06-19 01:36:07 -04:00
|
|
|
#endif // MXSOUNDMANAGER_H
|