feat(sound): add various members to SESoundInternal and SEDiskSound

This commit is contained in:
fallenoak committed 2025-11-23 23:06:14 -06:00
1 parent 62257ff89b
commit fbb13b3bc2
2 files changed
+34

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#include "sound/SESoundInternal.hpp"
#include "sound/SESound.hpp"
SESoundInternal::SESoundInternal() {
// TODO
this->m_uniqueID = SESound::s_UniqueID++;
}
+27
View File
@@ -1,13 +1,40 @@
#ifndef SOUND_SE_SOUND_INTERNAL_HPP
#define SOUND_SE_SOUND_INTERNAL_HPP
#include <fmod.hpp>
#include <cstdint>
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
};