Noting the value of the magic number

This commit is contained in:
Sven Bergström
2014-01-03 15:31:24 -03:30
parent 11f47e1c78
commit 43d92fed35

View File

@@ -1155,6 +1155,7 @@ namespace lime
if (!mSuspend)
{
alSourcef(source, AL_GAIN, inTransform.volume);
//magic number : Half PI
alSource3f(source, AL_POSITION, (float) cos((inTransform.pan - 1) * (1.5707)), 0, (float) sin((inTransform.pan + 1) * (1.5707)));
}
}