mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-29 19:05:34 -05:00
806afaa210
* Add miniaudio * WIP * static const * Fix missing looping * Fix volume * Implement 3D sound, WIP * Remove unused WinMM code * Update README.md * Fixes * Fix naming * Fix naming * disable ma threading * Invert Z axis for OpenGL system * Update comment * Set rolloff * Fix minimize/maximize suspension * Rename function * SDL3: changed macro name
44 lines
960 B
C++
44 lines
960 B
C++
#ifndef LEGO3DSOUND_H
|
|
#define LEGO3DSOUND_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxtypes.h"
|
|
|
|
#include <miniaudio.h>
|
|
|
|
class LegoActor;
|
|
class LegoROI;
|
|
|
|
// VTABLE: LEGO1 0x100d5778
|
|
// SIZE 0x30
|
|
class Lego3DSound {
|
|
public:
|
|
Lego3DSound();
|
|
virtual ~Lego3DSound();
|
|
|
|
void Init();
|
|
MxResult Create(ma_sound* p_sound, const char* p_name, MxS32 p_volume);
|
|
void Destroy();
|
|
MxU32 UpdatePosition(ma_sound* p_sound);
|
|
void FUN_10011a60(ma_sound* p_sound, const char* p_name);
|
|
void Reset();
|
|
MxS32 SetDistance(MxS32 p_min, MxS32 p_max);
|
|
|
|
// SYNTHETIC: LEGO1 0x10011650
|
|
// Lego3DSound::`scalar deleting destructor'
|
|
|
|
private:
|
|
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
|
|
};
|
|
|
|
// GLOBAL: LEGO1 0x100db6c0
|
|
// IID_IDirectSound3DBuffer
|
|
|
|
#endif // LEGO3DSOUND_H
|