mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 18:46:36 +00:00
I'm sorry clang, forgive me
This commit is contained in:
parent
ba361302a1
commit
db22706e8e
1 changed files with 5 additions and 4 deletions
|
@ -1144,8 +1144,8 @@ namespace MWSound
|
||||||
alSource3f(source, AL_VELOCITY, 0.0f, 0.0f, 0.0f);
|
alSource3f(source, AL_VELOCITY, 0.0f, 0.0f, 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenALOutput::initCommon3D(ALuint source, const osg::Vec3f& pos, const osg::Vec3f& vel, ALfloat mindist, ALfloat maxdist,
|
void OpenALOutput::initCommon3D(ALuint source, const osg::Vec3f& pos, const osg::Vec3f& vel, ALfloat mindist,
|
||||||
ALfloat gain, ALfloat pitch, bool loop, bool useenv)
|
ALfloat maxdist, ALfloat gain, ALfloat pitch, bool loop, bool useenv)
|
||||||
{
|
{
|
||||||
alSourcef(source, AL_REFERENCE_DISTANCE, mindist);
|
alSourcef(source, AL_REFERENCE_DISTANCE, mindist);
|
||||||
alSourcef(source, AL_MAX_DISTANCE, maxdist);
|
alSourcef(source, AL_MAX_DISTANCE, maxdist);
|
||||||
|
@ -1250,8 +1250,9 @@ namespace MWSound
|
||||||
}
|
}
|
||||||
source = mFreeSources.front();
|
source = mFreeSources.front();
|
||||||
|
|
||||||
initCommon3D(source, sound->getPosition(), sound->getVelocity(), sound->getMinDistance(), sound->getMaxDistance(),
|
initCommon3D(source, sound->getPosition(), sound->getVelocity(), sound->getMinDistance(),
|
||||||
sound->getRealVolume(), getTimeScaledPitch(sound), sound->getIsLooping(), sound->getUseEnv());
|
sound->getMaxDistance(), sound->getRealVolume(), getTimeScaledPitch(sound), sound->getIsLooping(),
|
||||||
|
sound->getUseEnv());
|
||||||
alSourcei(source, AL_BUFFER, GET_PTRID(data));
|
alSourcei(source, AL_BUFFER, GET_PTRID(data));
|
||||||
alSourcef(source, AL_SEC_OFFSET, offset);
|
alSourcef(source, AL_SEC_OFFSET, offset);
|
||||||
if (getALError() != AL_NO_ERROR)
|
if (getALError() != AL_NO_ERROR)
|
||||||
|
|
Loading…
Reference in a new issue