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

summaryrefslogtreecommitdiff
path: root/source/core/StarAudio.cpp
AgeCommit message (Collapse)Author
2025-02-19Update StarAudio.cppKae
2025-02-19put streamed audio behind an ifdef due to music bugKae
2025-02-15Streaming Audiobmdhacks
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.
2024-07-29Avoid crashing when a OGG file is broken (thanks to @kblaschke !)Kae
Also added a name tag to Audio for logging so that it's easier to find the audio asset that's causing it
2024-03-25nicer volume slidersKae
2024-02-19Fixed a huge amount of Clang warningsKai Blaschke
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably. 99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified. Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects. Most remaining warnings are now unused parameters.
2023-06-28Fix broken regex, make game timestep non-constKae
2023-06-27The Formatting String CatastropheKae
2023-06-20everything everywhereKae
all at once