Final release

This commit is contained in:
2025-07-20 15:04:05 +03:00
parent fbd0e86392
commit 70ef14addf
6 changed files with 65 additions and 17 deletions
+3
View File
@@ -15,6 +15,8 @@ public:
void Run();
void Play(const std::string& sound);
void Paint(SDL_AudioStream* stream, std::uint32_t ticks);
void SetVolume(float volume);
float Volume() const;
private:
struct TSound {
@@ -34,6 +36,7 @@ private:
private:
TFileManager& FileManager_;
float Volume_ = 1.0;
TSoundChannel Channels_[16];
std::unordered_map<std::string, TSound*> Sounds_;
SDL_AudioDeviceID Device_;