mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 23:59:53 +03:00
feat(sound): add various members to SESoundInternal and SEDiskSound
This commit is contained in:
2 files changed
+34
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#include "sound/SESoundInternal.hpp"
|
||||
#include "sound/SESound.hpp"
|
||||
|
||||
SESoundInternal::SESoundInternal() {
|
||||
// TODO
|
||||
this->m_uniqueID = SESound::s_UniqueID++;
|
||||
}
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user