2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:07:42 +00:00

Working SFX playback

This commit is contained in:
Jack Andersen
2017-01-22 21:22:17 -10:00
parent 9701907a3a
commit afd852f1a4
13 changed files with 664 additions and 55 deletions

View File

@@ -19,9 +19,6 @@ CFactoryFnReturn FAudioTranslationTableFactory(const SObjectTag& tag, CInputStre
class CAudioSys
{
static CAudioSys* g_SharedSys;
boo::IAudioVoiceEngine* m_voiceEngine;
amuse::Engine m_engine;
public:
enum class ESurroundModes
{
@@ -30,6 +27,12 @@ public:
Surround
};
private:
static CAudioSys* g_SharedSys;
boo::IAudioVoiceEngine* m_voiceEngine;
amuse::Engine m_engine;
public:
struct C3DEmitterParmData
{
zeus::CVector3f x0_pos;
@@ -40,7 +43,8 @@ public:
u16 x24_sfxId;
float x26_maxVol;
float x27_minVol;
u8 x28_extra[2];
u8 x28_;
u8 x29_;
};
CAudioSys(boo::IAudioVoiceEngine* voiceEngine,
amuse::IBackendVoiceAllocator& backend, u8,u8,u8,u8,u32)
@@ -81,6 +85,11 @@ public:
static bool SysIsGroupSetLoaded(const std::string& name);
static void SysAddGroupIntoAmuse(const std::string& name);
static void SysRemoveGroupFromAmuse(const std::string& name);
static void SysSetVolume(u8 volume);
static s16 GetDefaultVolumeScale();
static void SetDefaultVolumeScale(s16 scale);
static void SetVolumeScale(s16 scale);
};
}