Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/CMakeLists.txt
diff options
context:
space:
mode:
authorbmdhacks <bmd@bmdhacks.com>2025-02-13 16:01:47 -0800
committerbmdhacks <bmd@bmdhacks.com>2025-02-15 14:37:57 -0800
commit4ece0d79210c0f0351c16a0611f40308ceb8efb0 (patch)
tree7f27a77ccc27cdf0486d45feb6aa5ca484474e84 /source/core/CMakeLists.txt
parenteedd20da00e873ae188634f5e9af4a2e9efe8607 (diff)
Streaming Audio
Problem: The current implementation reads the entire sound file in to memory in order to play it. For OGG background music, this uses 91 Megs of RAM by injesting all ogg songs as well as all wav assets. Solution: Change StarAudio to play the asset from a file handle and stream it off the disk. This results in a massive savings of RAM and doesn't really affect audio quality unless you're doing massive disk operations such as compiling Starbound.
Diffstat (limited to 'source/core/CMakeLists.txt')
-rw-r--r--source/core/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/CMakeLists.txt b/source/core/CMakeLists.txt
index 3d00baf..63f86cf 100644
--- a/source/core/CMakeLists.txt
+++ b/source/core/CMakeLists.txt
@@ -10,6 +10,7 @@ SET (star_core_HEADERS
StarAssetPath.hpp
StarAtomicSharedPtr.hpp
StarAudio.hpp
+ StarIODeviceCallbacks.hpp
StarBTree.hpp
StarBTreeDatabase.hpp
StarBiMap.hpp
@@ -141,6 +142,7 @@ SET (star_core_SOURCES
StarBuffer.cpp
StarByteArray.cpp
StarColor.cpp
+ StarIODeviceCallbacks.cpp
StarCompression.cpp
StarCurve25519.cpp
StarDataStream.cpp
@@ -235,4 +237,4 @@ IF(STAR_USE_JEMALLOC AND JEMALLOC_IS_PREFIXED)
SET_SOURCE_FILES_PROPERTIES(StarMemory.cpp PROPERTIES
COMPILE_DEFINITIONS STAR_JEMALLOC_IS_PREFIXED
)
-ENDIF() \ No newline at end of file
+ENDIF()