mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(sound): add various members to SESoundInternal and SEDiskSound
This commit is contained in:
parent
62257ff89b
commit
fbb13b3bc2
7
src/sound/SESoundInternal.cpp
Normal file
7
src/sound/SESoundInternal.cpp
Normal file
@ -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
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user