diff options
author | Chris Robinson <[email protected]> | 2011-09-11 01:18:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-11 01:18:57 -0700 |
commit | 1075cce7b3dc6fd6592a925224735437f6b6f3ed (patch) | |
tree | a56f1d292333fd768c45c68eb2e6d72dd10893e3 /Alc/ALu.c | |
parent | 89f438df71bc757c96fd2c3660f67f5bcf684075 (diff) |
Mark some source properties volatile
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 38 |
1 files changed, 22 insertions, 16 deletions
@@ -383,23 +383,29 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) memcpy(ListenerVel, ALContext->Listener.Velocity, sizeof(ALContext->Listener.Velocity)); //Get source properties - SourceVolume = ALSource->flGain; - MinVolume = ALSource->flMinGain; - MaxVolume = ALSource->flMaxGain; - Pitch = ALSource->flPitch; - Resampler = ALSource->Resampler; - memcpy(Position, ALSource->vPosition, sizeof(ALSource->vPosition)); - memcpy(Direction, ALSource->vOrientation, sizeof(ALSource->vOrientation)); - memcpy(Velocity, ALSource->vVelocity, sizeof(ALSource->vVelocity)); - MinDist = ALSource->flRefDistance; - MaxDist = ALSource->flMaxDistance; - Rolloff = ALSource->flRollOffFactor; - InnerAngle = ALSource->flInnerAngle * ConeScale; - OuterAngle = ALSource->flOuterAngle * ConeScale; + SourceVolume = ALSource->flGain; + MinVolume = ALSource->flMinGain; + MaxVolume = ALSource->flMaxGain; + Pitch = ALSource->flPitch; + Resampler = ALSource->Resampler; + Position[0] = ALSource->vPosition[0]; + Position[1] = ALSource->vPosition[1]; + Position[2] = ALSource->vPosition[2]; + Direction[0] = ALSource->vOrientation[0]; + Direction[1] = ALSource->vOrientation[1]; + Direction[2] = ALSource->vOrientation[2]; + Velocity[0] = ALSource->vVelocity[0]; + Velocity[1] = ALSource->vVelocity[1]; + Velocity[2] = ALSource->vVelocity[2]; + MinDist = ALSource->flRefDistance; + MaxDist = ALSource->flMaxDistance; + Rolloff = ALSource->flRollOffFactor; + InnerAngle = ALSource->flInnerAngle * ConeScale; + OuterAngle = ALSource->flOuterAngle * ConeScale; AirAbsorptionFactor = ALSource->AirAbsorptionFactor; - DryGainHFAuto = ALSource->DryGainHFAuto; - WetGainAuto = ALSource->WetGainAuto; - WetGainHFAuto = ALSource->WetGainHFAuto; + DryGainHFAuto = ALSource->DryGainHFAuto; + WetGainAuto = ALSource->WetGainAuto; + WetGainHFAuto = ALSource->WetGainHFAuto; RoomRolloffBase = ALSource->RoomRolloffFactor; for(i = 0;i < NumSends;i++) { |