From f0f17fa34fe36fdc1fc301245f106c483d689839 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 12 Apr 2020 08:19:19 +0200 Subject: [PATCH] - moved sound code to "common". --- source/CMakeLists.txt | 20 +++++++++---------- .../backend => common/audio/sound}/efx.h | 0 .../audio/sound}/i_sound.cpp | 0 .../backend => common/audio/sound}/i_sound.h | 0 .../audio/sound}/i_soundinternal.h | 0 .../backend => common/audio/sound}/oalload.h | 0 .../audio/sound}/oalsound.cpp | 0 .../backend => common/audio/sound}/oalsound.h | 0 .../audio}/sound/s_environment.cpp | 0 .../{core => common/audio}/sound/s_sound.cpp | 0 .../audio}/sound/s_soundinternal.h | 0 .../audio}/sound/thirdparty/al.h | 0 .../audio}/sound/thirdparty/alc.h | 0 .../audio}/sound/thirdparty/alext.h | 0 source/core/sound/s_sound.h | 1 - 15 files changed, 9 insertions(+), 12 deletions(-) rename source/{core/sound/backend => common/audio/sound}/efx.h (100%) rename source/{core/sound/backend => common/audio/sound}/i_sound.cpp (100%) rename source/{core/sound/backend => common/audio/sound}/i_sound.h (100%) rename source/{core/sound/backend => common/audio/sound}/i_soundinternal.h (100%) rename source/{core/sound/backend => common/audio/sound}/oalload.h (100%) rename source/{core/sound/backend => common/audio/sound}/oalsound.cpp (100%) rename source/{core/sound/backend => common/audio/sound}/oalsound.h (100%) rename source/{core => common/audio}/sound/s_environment.cpp (100%) rename source/{core => common/audio}/sound/s_sound.cpp (100%) rename source/{core => common/audio}/sound/s_soundinternal.h (100%) rename source/{core => common/audio}/sound/thirdparty/al.h (100%) rename source/{core => common/audio}/sound/thirdparty/alc.h (100%) rename source/{core => common/audio}/sound/thirdparty/alext.h (100%) delete mode 100644 source/core/sound/s_sound.h diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 1c1d9ada2..487225bb7 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -589,8 +589,6 @@ file( GLOB HEADER_FILES core/utility/rapidjson/*.h core/console/*.h core/music/*.h - core/sound/*.h - core/sound/backend/*.h core/menu/*.h core/input/*.h core/rendering/*.h @@ -602,6 +600,8 @@ file( GLOB HEADER_FILES core/rendering/hwrenderer/postprocessing/*.h core/rendering/hwrenderer/utility/*.h + common/audio/sound/thirdparty/*.h + common/audio/sound/*.h common/audio/music/*.h* common/console/*.h common/utility/*.h @@ -719,6 +719,10 @@ set (PCH_SOURCES core/console/c_console.cpp core/console/d_event.cpp + common/audio/sound/i_sound.cpp + common/audio/sound/oalsound.cpp + common/audio/sound/s_environment.cpp + common/audio/sound/s_sound.cpp common/audio/music/music_midi_base.cpp common/audio/music/music.cpp common/audio/music/i_music.cpp @@ -786,11 +790,6 @@ set (PCH_SOURCES core/music/s_advsound.cpp - core/sound/backend/oalsound.cpp - core/sound/backend/i_sound.cpp - core/sound/s_sound.cpp - core/sound/s_environment.cpp - core/menu/imagescroller.cpp core/menu/joystickmenu.cpp core/menu/listmenu.cpp @@ -904,8 +903,6 @@ include_directories( core/console core/textures core/music - core/sound - core/sound/backend core/dobject core/menu core/input @@ -918,6 +915,7 @@ include_directories( core/rendering/hwrenderer/utility core/rendering platform + common/audio/sound common/audio/music common/thirdparty common/textures @@ -1021,8 +1019,6 @@ source_group("Core\\Utility" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/co source_group("Core\\2D" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/2d/.+") source_group("Core\\Console" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/console/.+") source_group("Core\\Fonts" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/fonts/.+") -source_group("Core\\Sound" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/sound/.+") -source_group("Core\\Sound\\Backend" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/sound/backend/.+") source_group("Core\\DObject" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/dobject/.+") source_group("Core\\Menu" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/menu/.+") source_group("Core\\Rendering" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/core/rendering/.+") @@ -1033,6 +1029,8 @@ source_group("Platform\\Win32" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/ source_group("Platform\\POSIX" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/platform/posix/.+") source_group("Common" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/.+") source_group("Common\\Audio" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/.+") +source_group("Common\\Audio\\Sound" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/sound/.+") +source_group("Common\\Audio\\Sound\\Third-party" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/sound/thirdparty/.+") source_group("Common\\Audio\\Music" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/audio/music.+") source_group("Common\\Console" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/console/.+") source_group("Common\\Utility" REGULAR_EXPRESSION "^${CMAKE_CURRENT_SOURCE_DIR}/common/utility/.+") diff --git a/source/core/sound/backend/efx.h b/source/common/audio/sound/efx.h similarity index 100% rename from source/core/sound/backend/efx.h rename to source/common/audio/sound/efx.h diff --git a/source/core/sound/backend/i_sound.cpp b/source/common/audio/sound/i_sound.cpp similarity index 100% rename from source/core/sound/backend/i_sound.cpp rename to source/common/audio/sound/i_sound.cpp diff --git a/source/core/sound/backend/i_sound.h b/source/common/audio/sound/i_sound.h similarity index 100% rename from source/core/sound/backend/i_sound.h rename to source/common/audio/sound/i_sound.h diff --git a/source/core/sound/backend/i_soundinternal.h b/source/common/audio/sound/i_soundinternal.h similarity index 100% rename from source/core/sound/backend/i_soundinternal.h rename to source/common/audio/sound/i_soundinternal.h diff --git a/source/core/sound/backend/oalload.h b/source/common/audio/sound/oalload.h similarity index 100% rename from source/core/sound/backend/oalload.h rename to source/common/audio/sound/oalload.h diff --git a/source/core/sound/backend/oalsound.cpp b/source/common/audio/sound/oalsound.cpp similarity index 100% rename from source/core/sound/backend/oalsound.cpp rename to source/common/audio/sound/oalsound.cpp diff --git a/source/core/sound/backend/oalsound.h b/source/common/audio/sound/oalsound.h similarity index 100% rename from source/core/sound/backend/oalsound.h rename to source/common/audio/sound/oalsound.h diff --git a/source/core/sound/s_environment.cpp b/source/common/audio/sound/s_environment.cpp similarity index 100% rename from source/core/sound/s_environment.cpp rename to source/common/audio/sound/s_environment.cpp diff --git a/source/core/sound/s_sound.cpp b/source/common/audio/sound/s_sound.cpp similarity index 100% rename from source/core/sound/s_sound.cpp rename to source/common/audio/sound/s_sound.cpp diff --git a/source/core/sound/s_soundinternal.h b/source/common/audio/sound/s_soundinternal.h similarity index 100% rename from source/core/sound/s_soundinternal.h rename to source/common/audio/sound/s_soundinternal.h diff --git a/source/core/sound/thirdparty/al.h b/source/common/audio/sound/thirdparty/al.h similarity index 100% rename from source/core/sound/thirdparty/al.h rename to source/common/audio/sound/thirdparty/al.h diff --git a/source/core/sound/thirdparty/alc.h b/source/common/audio/sound/thirdparty/alc.h similarity index 100% rename from source/core/sound/thirdparty/alc.h rename to source/common/audio/sound/thirdparty/alc.h diff --git a/source/core/sound/thirdparty/alext.h b/source/common/audio/sound/thirdparty/alext.h similarity index 100% rename from source/core/sound/thirdparty/alext.h rename to source/common/audio/sound/thirdparty/alext.h diff --git a/source/core/sound/s_sound.h b/source/core/sound/s_sound.h deleted file mode 100644 index 330ed6ed4..000000000 --- a/source/core/sound/s_sound.h +++ /dev/null @@ -1 +0,0 @@ -#include "s_soundinternal.h" \ No newline at end of file