Minor - Adds FMOD integration for audio support - V13.4.0
Initializes FMOD sound system within the application class and propagates it to the entity manager and entities. This allows for audio components to access and use the FMOD system for playing sounds. Removes redundant FMOD system initialization from the audio component.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <cassert>
|
||||
|
||||
#include "camera_class.h"
|
||||
#include <Fmod/core/inc/fmod.hpp>
|
||||
|
||||
namespace ecs {
|
||||
/**
|
||||
@@ -140,6 +141,9 @@ public:
|
||||
void SetCamera(camera_class* camera) {m_camera = camera; }
|
||||
camera_class* GetCamera() const { return m_camera; }
|
||||
|
||||
void SetSoundSystem(FMOD::System* soundSystem) {m_soundSystem = soundSystem; }
|
||||
FMOD::System* GetSoundSystem() const { return m_soundSystem; }
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
@@ -154,6 +158,9 @@ private:
|
||||
|
||||
// camera
|
||||
camera_class* m_camera = nullptr;
|
||||
|
||||
// FMOD sound system
|
||||
FMOD::System* m_soundSystem = nullptr;
|
||||
};
|
||||
|
||||
} // namespace ecs
|
||||
|
||||
Reference in New Issue
Block a user