From 851320a6ff4692d43de8c9621303c74d7d7a6341 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 6 Nov 2022 16:47:16 -0800 Subject: [PATCH] Fix CSfxManager::AddListener --- include/Kyoto/Audio/CSfxManager.hpp | 2 +- src/MetroidPrime/Cameras/CCameraManager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Kyoto/Audio/CSfxManager.hpp b/include/Kyoto/Audio/CSfxManager.hpp index b448811a..920424ca 100644 --- a/include/Kyoto/Audio/CSfxManager.hpp +++ b/include/Kyoto/Audio/CSfxManager.hpp @@ -88,7 +88,7 @@ public: static void AddListener(ESfxChannels channel, const CVector3f& pos, const CVector3f& dir, const CVector3f& vec1, const CVector3f& vec2, float f1, float f2, - uint w1, uchar maxVolume, float f3); + float f3, uint w1, const uchar maxVolume); static void Shutdown(); static ushort TranslateSFXID(ushort); diff --git a/src/MetroidPrime/Cameras/CCameraManager.cpp b/src/MetroidPrime/Cameras/CCameraManager.cpp index 0055ea45..edce7acd 100644 --- a/src/MetroidPrime/Cameras/CCameraManager.cpp +++ b/src/MetroidPrime/Cameras/CCameraManager.cpp @@ -46,8 +46,8 @@ CCameraManager::CCameraManager(TUniqueId curCamera) , x3b8_25_(false) , x3bc_curFov(sThirdPersonFOV) { CSfxManager::AddListener(CSfxManager::kSC_Game, CVector3f::Zero(), CVector3f::Zero(), - CVector3f(1.f, 0.f, 0.f), CVector3f(0.f, 0.f, 1.f), 50.f, 50.f, 1, - CAudioSys::kMaxVolume, 1000.f); + CVector3f(1.f, 0.f, 0.f), CVector3f(0.f, 0.f, 1.f), 50.f, 50.f, 1000.f, + 1, CAudioSys::kMaxVolume); sAspectRatio = (float)CGraphics::GetViewport().mWidth / CGraphics::GetViewport().mHeight; sFirstPersonFOV = gpTweakGame->GetFirstPersonFOV(); }