fix audiosystem warnings

This commit is contained in:
Glence 2022-10-01 21:29:40 +08:00
parent 48413bdc1f
commit 8a3a08986b
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ namespace SHADE
//PlayEventOnce("event:/SFX/Dawn/Dawn_Attack");
}
void SHADE::SHAudioSystem::Run(float dt)
void SHADE::SHAudioSystem::Run(double dt)
{
static_cast<void>(dt);
//if (GetKeyState(VK_SPACE) & 0x8000)
@ -417,7 +417,7 @@ namespace SHADE
int instanceCount = 0;
event.second->getInstanceCount(&instanceCount);
std::vector<FMOD::Studio::EventInstance*> instances(instanceCount);
event.second->getInstanceList(instances.data(), instances.size(), &instanceCount);
event.second->getInstanceList(instances.data(), static_cast<int>(instances.size()), &instanceCount);
for (auto const& instance : instances)
{
instance->setPaused(pause);

View File

@ -50,7 +50,7 @@ namespace SHADE
~SHAudioSystem();
void Init();
void Run(float dt);
void Run(double dt);
class SH_API AudioRoutine final : public SHSystemRoutine
{
public: