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

First skybox and HUD rendering

This commit is contained in:
Jack Andersen
2017-11-11 19:14:57 -10:00
parent 744a934115
commit 742ab2514f
38 changed files with 521 additions and 174 deletions

View File

@@ -329,6 +329,8 @@ float CSfxManager::GetReverbAmount()
void CSfxManager::PitchBend(const CSfxHandle& handle, float pitch)
{
if (!handle)
return;
if (!handle->IsPlaying())
CSfxManager::Update(0.f);
if (handle->IsPlaying())
@@ -340,6 +342,8 @@ void CSfxManager::PitchBend(const CSfxHandle& handle, float pitch)
void CSfxManager::SfxVolume(const CSfxHandle& handle, float vol)
{
if (!handle)
return;
if (handle->IsEmitter())
{
CSfxWrapper& wrapper = static_cast<CSfxWrapper&>(*handle);
@@ -351,6 +355,8 @@ void CSfxManager::SfxVolume(const CSfxHandle& handle, float vol)
void CSfxManager::SfxSpan(const CSfxHandle& handle, float span)
{
if (!handle)
return;
if (handle->IsPlaying())
handle->GetVoice()->setSurroundPan(span);
}