Isle
Loading...
Searching...
No Matches
legosoundmanager.h
Go to the documentation of this file.
1#ifndef LEGOSOUNDMANAGER_H
2#define LEGOSOUNDMANAGER_H
3
4#include "mxsoundmanager.h"
5
7
15public:
18
20 ~LegoSoundManager() override;
21
24 MxResult Tickle() override; // vtable+0x08
25
27 void Destroy() override; // vtable+0x18
28
33 MxResult Create(MxU32 p_frequencyMS, MxBool p_createThread) override; // vtable+0x30
34
41 void UpdateListener(const float* p_position, const float* p_direction, const float* p_up, const float* p_velocity);
42
45 LegoCacheSoundManager* GetCacheSoundManager() { return m_cacheSoundManager; }
46
47private:
49 void Init();
50
53 void Destroy(MxBool p_fromDestructor);
54
55 LPDIRECTSOUND3DLISTENER m_listener;
56 LegoCacheSoundManager* m_cacheSoundManager;
57};
58
59// GLOBAL: LEGO1 0x100db6d0 [AI] IID_IDirectSound3DListener (COM Interface GUID for DirectSound 3D Listener)
60
61#endif // LEGOSOUNDMANAGER_H
[AI] Manages caching, reuse, and playback of LegoCacheSound objects.
[AI] Manages 3D sound effects and music playback for LEGO Island, integrating with DirectSound and pr...
void Destroy() override
[AI] Cleans up and releases all resources used by the sound manager and its cache.
MxResult Tickle() override
[AI] Performs periodic processing, such as updating the cache sound manager.
LegoSoundManager()
[AI] Constructs the LegoSoundManager and initializes its internal members.
void UpdateListener(const float *p_position, const float *p_direction, const float *p_up, const float *p_velocity)
[AI] Updates the 3D sound listener properties in DirectSound, reflecting player/world changes.
LegoCacheSoundManager * GetCacheSoundManager()
[AI] Returns the cache sound manager used to cache and reuse sound effects.
~LegoSoundManager() override
[AI] Destructor. Cleans up resources, optionally as part of destruction.
MxResult Create() override
[AI] Initializes audio subsystem resources and registers an instance for global audio management.
[AI] Manages DirectSound-based sound playback, implementing volume, resource, and device management.
struct IDirectSound3DListener * LPDIRECTSOUND3DLISTENER
Definition: dsound.h:48
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106
unsigned int MxU32
[AI]
Definition: mxtypes.h:32