Fix Audio & Physics compilation

This commit is contained in:
Jérôme Leclercq
2020-08-27 19:26:04 +02:00
parent 9d16559f55
commit 94523980fa
5 changed files with 26 additions and 24 deletions

View File

@@ -97,7 +97,7 @@ namespace Nz
Vector3f Audio::GetListenerPosition()
{
Vector3f position;
alGetListenerfv(AL_POSITION, position);
alGetListenerfv(AL_POSITION, &position.x);
return position;
}
@@ -127,7 +127,7 @@ namespace Nz
Vector3f Audio::GetListenerVelocity()
{
Vector3f velocity;
alGetListenerfv(AL_VELOCITY, velocity);
alGetListenerfv(AL_VELOCITY, &velocity.x);
return velocity;
}
@@ -294,7 +294,7 @@ namespace Nz
void Audio::SetListenerPosition(const Vector3f& position)
{
alListenerfv(AL_POSITION, position);
alListenerfv(AL_POSITION, &position.x);
}
/*!
@@ -340,7 +340,7 @@ namespace Nz
void Audio::SetListenerVelocity(const Vector3f& velocity)
{
alListenerfv(AL_VELOCITY, velocity);
alListenerfv(AL_VELOCITY, &velocity.x);
}
/*!

View File

@@ -142,7 +142,7 @@ namespace Nz
NazaraAssert(m_source != InvalidSource, "Invalid sound emitter");
Vector3f position;
alGetSourcefv(m_source, AL_POSITION, position);
alGetSourcefv(m_source, AL_POSITION, &position.x);
return position;
}
@@ -157,7 +157,7 @@ namespace Nz
NazaraAssert(m_source != InvalidSource, "Invalid sound emitter");
Vector3f velocity;
alGetSourcefv(m_source, AL_VELOCITY, velocity);
alGetSourcefv(m_source, AL_VELOCITY, &velocity.x);
return velocity;
}
@@ -241,7 +241,7 @@ namespace Nz
{
NazaraAssert(m_source != InvalidSource, "Invalid sound emitter");
alSourcefv(m_source, AL_POSITION, position);
alSourcefv(m_source, AL_POSITION, &position.x);
}
/*!
@@ -267,7 +267,7 @@ namespace Nz
{
NazaraAssert(m_source != InvalidSource, "Invalid sound emitter");
alSourcefv(m_source, AL_VELOCITY, velocity);
alSourcefv(m_source, AL_VELOCITY, &velocity.x);
}
/*!