Skip to content

Commit

Permalink
Positional audio fix, for real this time, compliments of Petter Flink.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 31, 2005
1 parent 69101f9 commit 97c2a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osx/alSoftware.c
Expand Up @@ -403,7 +403,7 @@ ALvoid __alRecalcMonoSource(ALcontext *ctx, ALsource *src)
(ALfloat) (cos(atan2f(Position[2],Position[0]))) );

src->channelGain0 = CalcVolume * Panning * ctx->device->speakergains[0];
src->channelGain1 = CalcVolume * (1.0f - Panning) * ctx->device->speakergains[1];
src->channelGain1 = CalcVolume * (2.0f - Panning) * ctx->device->speakergains[1];
} // if
else
{
Expand Down

0 comments on commit 97c2a4d

Please sign in to comment.