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

This commit is contained in:
fallenoak 2025-11-23 23:06:14 -06:00
parent 62257ff89b
commit fbb13b3bc2
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#include "sound/SESoundInternal.hpp"
#include "sound/SESound.hpp"
SESoundInternal::SESoundInternal() {
// TODO
this->m_uniqueID = SESound::s_UniqueID++;
}

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
};