RhythmGame 1.4.3
Loading...
Searching...
No Matches
Namespaces | Functions
loadBmsSounds.cpp File Reference
#include "loadBmsSounds.h"
#include "sounds/MultiSound.h"
#include "sounds/NormalSound.h"
#include "sounds/NormalSoundBuffer.h"
#include "sounds/SlicedSoundBuffer.h"
#include "sounds/SoundBuffer.h"
#include "resource_managers/SongAssetStore.h"
#include "support/PathToQString.h"
#include "support/PathToUtfString.h"
#include "support/UtfStringToPath.h"
#include <QDir>
#include <QHash>
#include <optional>
#include <unordered_set>
#include <QtConcurrent>
Include dependency graph for loadBmsSounds.cpp:

Namespaces

namespace  charts
 Classes and functions related to loading and calculating offsets in BMS charts.
 

Functions

auto charts::loadArchivedSoundData (resource_managers::SongAssetStore *assetStore, const std::filesystem::path &chartDirectory, const std::unordered_map< uint64_t, std::filesystem::path > &paths, const std::atomic_bool *cancellation) -> EncodedSounds
 
auto charts::soundPathKey (const std::filesystem::path &path) -> std::string
 
auto charts::getActualPath (const std::unordered_map< std::string, std::filesystem::path > &lowerCaseFilesMap, const std::filesystem::path &filePath) -> std::optional< std::filesystem::path >
 
auto charts::createLowerCaseFilesMap (std::filesystem::path dirToSearch) -> std::unordered_map< std::string, std::filesystem::path >
 
auto charts::loadEncodedBuffers (sounds::AudioEngine *engine, const EncodedSounds &encodedSounds, const std::atomic_bool *cancellation) -> std::unordered_map< EncodedSound, std::shared_ptr< const sounds::SoundBuffer > >
 
auto charts::createBmsonSounds (sounds::AudioEngine *engine, const std::unordered_map< uint64_t, std::shared_ptr< const sounds::SoundBuffer > > &channelBuffers, const std::vector< BmsNotesData::BmsonSliceInfo > &slices, const std::unordered_map< uint64_t, std::vector< uint64_t > > &fusions, const std::atomic_bool *cancellation) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >
 
auto charts::loadBmsSounds (sounds::AudioEngine *engine, const std::unordered_map< uint64_t, std::filesystem::path > &wavs, const std::filesystem::path &path, const std::atomic_bool *cancellation) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >
 
auto charts::loadBmsSounds (sounds::AudioEngine *engine, const EncodedSounds &wavs, const std::atomic_bool *cancellation) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >
 
auto charts::loadBmsonSounds (sounds::AudioEngine *engine, const std::unordered_map< uint64_t, std::filesystem::path > &channelPaths, const std::vector< BmsNotesData::BmsonSliceInfo > &slices, const std::unordered_map< uint64_t, std::vector< uint64_t > > &fusions, const std::filesystem::path &basePath, const std::atomic_bool *cancellation=nullptr) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >
 Loads and slices sounds for a bmson chart.
 
auto charts::loadBmsonSounds (sounds::AudioEngine *engine, const EncodedSounds &channels, const std::vector< BmsNotesData::BmsonSliceInfo > &slices, const std::unordered_map< uint64_t, std::vector< uint64_t > > &fusions, const std::atomic_bool *cancellation) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >