From fbb13b3bc2cce5b3de58dce0002f6fe0c4cd813c Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 23 Nov 2025 23:06:14 -0600 Subject: [PATCH] feat(sound): add various members to SESoundInternal and SEDiskSound --- src/sound/SESoundInternal.cpp | 7 +++++++ src/sound/SESoundInternal.hpp | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/sound/SESoundInternal.cpp diff --git a/src/sound/SESoundInternal.cpp b/src/sound/SESoundInternal.cpp new file mode 100644 index 0000000..943ff26 --- /dev/null +++ b/src/sound/SESoundInternal.cpp @@ -0,0 +1,7 @@ +#include "sound/SESoundInternal.hpp" +#include "sound/SESound.hpp" + +SESoundInternal::SESoundInternal() { + // TODO + this->m_uniqueID = SESound::s_UniqueID++; +} diff --git a/src/sound/SESoundInternal.hpp b/src/sound/SESoundInternal.hpp index cd24d70..95c9b4e 100644 --- a/src/sound/SESoundInternal.hpp +++ b/src/sound/SESoundInternal.hpp @@ -1,13 +1,40 @@ #ifndef SOUND_SE_SOUND_INTERNAL_HPP #define SOUND_SE_SOUND_INTERNAL_HPP +#include +#include + +class SESound; +class SFile; + class SESoundInternal { public: + // Member variables // TODO + FMOD::System* m_fmodSystem; + FMOD::Channel* m_fmodChannel = nullptr; + SESound* m_sound = nullptr; + // TODO + int32_t m_useCache = 0; + int32_t m_type = 0; + // TODO + FMOD_MODE m_fmodMode = FMOD_DEFAULT; + // TODO + int32_t m_loaded = 0; + // TODO + uint32_t m_uniqueID; + + // Member functions + SESoundInternal(); }; class SEDiskSound : public SESoundInternal { public: + // Member variables + // TODO + SFile* m_file; + // TODO + FMOD::Sound* m_fmodSound; // TODO };