Detection for SoundState::Finished

This commit is contained in:
2025-09-05 17:30:12 +03:00
parent 76b53b5f71
commit 64b5a8af29
3 changed files with 17 additions and 5 deletions

View File

@@ -27,7 +27,9 @@ public:
float GetVolume();
private:
Sound();
Sound(class Engine *engine);
static void onSoundFinish(void *customData, ma_sound *);
class Engine *baseEngine;
ma_sound maSound;
SoundState state = SoundState::Idle;
@@ -65,6 +67,7 @@ private:
ma_result maResponse;
ma_uint64 listenerCounter = 0;
friend class Listener;
friend class Sound;
};
} // namespace ChargeAudio