From 4f4151201d3224fde67881ad38b9d2fe1bab2ca7 Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Mon, 15 Sep 2025 23:15:34 +0200 Subject: [PATCH] Adds audio component with spatialization Adds a new audio component with support for loading, playing, pausing, stopping, and controlling audio properties such as volume, pan, pitch, and looping. Implements spatialization using FMOD, enabling 3D audio effects based on object and camera positions. Includes file selection dialog and UI controls for audio properties. --- .../.idea/workspace.xml | 15 +- enginecustom/assets/sounds/imgui.ini | 73 ++++ enginecustom/src/inc/system/camera_class.h | 30 ++ enginecustom/src/inc/system/ecs/component.h | 18 + .../system/ecs/components/audio_component.h | 355 ++++++++++++++++-- .../ecs/components/transform_component.h | 1 + enginecustom/src/inc/system/ecs/entity.h | 13 +- .../src/inc/system/ecs/entity_manager.h | 5 + .../src/src/system/application_class.cpp | 4 + 9 files changed, 479 insertions(+), 35 deletions(-) create mode 100644 enginecustom/assets/sounds/imgui.ini diff --git a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml index 5bc6fbc..9169862 100644 --- a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml +++ b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml @@ -6,9 +6,13 @@ - - + + + + + + {} @@ -250,7 +255,11 @@ - + + + + +