RhythmGame 1.4.3
Loading...
Searching...
No Matches
loadBmsSounds.h
Go to the documentation of this file.
1//
2// Created by bobini on 16.06.23.
3//
4
5#ifndef RHYTHMGAME_LOADBMSSOUNDS_H
6#define RHYTHMGAME_LOADBMSSOUNDS_H
7
10
11#include <QByteArray>
12
13#include <atomic>
14#include <filesystem>
15#include <memory>
16#include <unordered_map>
17#include "sounds/Sound.h"
18
19namespace resource_managers {
20class SongAssetStore;
21}
22
23namespace charts {
24using EncodedSound = std::shared_ptr<const QByteArray>;
25using EncodedSounds = std::unordered_map<uint64_t, EncodedSound>;
26
27auto
30 const std::filesystem::path& chartDirectory,
31 const std::unordered_map<uint64_t, std::filesystem::path>& paths,
32 const std::atomic_bool* cancellation = nullptr) -> EncodedSounds;
33
34auto
36 const std::unordered_map<uint64_t, std::filesystem::path>& wavs,
37 const std::filesystem::path& path,
38 const std::atomic_bool* cancellation = nullptr)
39 -> std::unordered_map<uint64_t, std::shared_ptr<sounds::Sound>>;
40
41auto
43 const EncodedSounds& wavs,
44 const std::atomic_bool* cancellation = nullptr)
45 -> std::unordered_map<uint64_t, std::shared_ptr<sounds::Sound>>;
46
56auto
58 sounds::AudioEngine* engine,
59 const std::unordered_map<uint64_t, std::filesystem::path>& channelPaths,
60 const std::vector<BmsNotesData::BmsonSliceInfo>& slices,
61 const std::unordered_map<uint64_t, std::vector<uint64_t>>& fusions,
62 const std::filesystem::path& basePath,
63 const std::atomic_bool* cancellation = nullptr)
64 -> std::unordered_map<uint64_t, std::shared_ptr<sounds::Sound>>;
65
66auto
68 sounds::AudioEngine* engine,
69 const EncodedSounds& channels,
70 const std::vector<BmsNotesData::BmsonSliceInfo>& slices,
71 const std::unordered_map<uint64_t, std::vector<uint64_t>>& fusions,
72 const std::atomic_bool* cancellation = nullptr)
73 -> std::unordered_map<uint64_t, std::shared_ptr<sounds::Sound>>;
74
75} // namespace charts
76
77#endif // RHYTHMGAME_LOADBMSSOUNDS_H
QString path
Definition Lr2SkinParser.cpp:87
Definition SongAssetStore.h:28
Definition AudioEngine.h:16
Classes and functions related to loading and calculating offsets in BMS charts.
Definition Base62.cpp:7
auto 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
Definition loadBmsSounds.cpp:37
std::shared_ptr< const QByteArray > EncodedSound
Definition loadBmsSounds.h:24
auto 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 > >
Definition loadBmsSounds.cpp:270
std::unordered_map< uint64_t, EncodedSound > EncodedSounds
Definition loadBmsSounds.h:25
auto 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) -> std::unordered_map< uint64_t, std::shared_ptr< sounds::Sound > >
Loads and slices sounds for a bmson chart.
Definition loadBmsSounds.cpp:400
Classes and functions related to loading and managing resources such as charts, sounds,...
Definition ProfileArenaIdentityProvider.h:12