Changing initing to be more standardised(needs to be refactored)

This commit is contained in:
2025-09-07 22:39:17 +03:00
parent 71e4ff9317
commit 146bd49b36
3 changed files with 27 additions and 14 deletions

View File

@@ -28,11 +28,14 @@ public:
private:
Sound(class Engine *engine);
void init(std::string additionalErrorMessage = "");
static void onSoundFinish(void *customData, ma_sound *);
class Engine *baseEngine;
ma_sound maSound;
ma_sound_config maConfig;
SoundState state = SoundState::Idle;
friend class Engine;
};