2016-04-17 02:50:45 +00:00
|
|
|
#include "CSfxManager.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
2016-04-28 04:52:41 +00:00
|
|
|
std::vector<s16>* CSfxManager::mpSfxTranslationTable = nullptr;
|
2016-04-17 02:50:45 +00:00
|
|
|
|
|
|
|
void CSfxManager::AddListener(ESfxChannels,
|
|
|
|
const zeus::CVector3f& vec1, const zeus::CVector3f& vec2,
|
|
|
|
const zeus::CVector3f& right, const zeus::CVector3f& up,
|
|
|
|
float, float, float, u32, u8)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CSfxManager::UpdateListener(const zeus::CVector3f& pos, const zeus::CVector3f& dir,
|
|
|
|
const zeus::CVector3f& heading, const zeus::CVector3f& up,
|
|
|
|
u8 vol)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-04-28 04:52:41 +00:00
|
|
|
u16 CSfxManager::TranslateSFXID(u16 id)
|
2016-04-25 05:03:38 +00:00
|
|
|
{
|
2016-09-02 15:26:29 +00:00
|
|
|
if (mpSfxTranslationTable == nullptr)
|
2016-04-28 04:52:41 +00:00
|
|
|
return 0;
|
|
|
|
|
2016-09-02 15:26:29 +00:00
|
|
|
u16 index = id;
|
2016-04-28 04:52:41 +00:00
|
|
|
if (index >= mpSfxTranslationTable->size())
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
s16 ret = mpSfxTranslationTable->at(index);
|
|
|
|
if (ret == -1)
|
|
|
|
return 0;
|
2016-09-02 15:26:29 +00:00
|
|
|
return ret;
|
2016-04-25 05:03:38 +00:00
|
|
|
}
|
|
|
|
|
2016-09-16 23:43:33 +00:00
|
|
|
CSfxHandle CSfxManager::SfxStop(const CSfxHandle& handle)
|
|
|
|
{
|
2016-09-19 01:04:26 +00:00
|
|
|
return {};
|
2016-09-16 23:43:33 +00:00
|
|
|
}
|
|
|
|
|
2016-12-13 05:22:30 +00:00
|
|
|
CSfxHandle CSfxManager::SfxStart(u16 id, float vol, float pan, bool active, s16 prio, bool inArea, s32 areaId)
|
2016-09-16 23:43:33 +00:00
|
|
|
{
|
2016-09-19 01:04:26 +00:00
|
|
|
return {};
|
2016-09-16 23:43:33 +00:00
|
|
|
}
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
}
|