Keep track of a playing source's distance from the listener
commit06e09e957c3db31ff9c77ebef484ff0cf7658a49
authorChris Robinson <chris.kcat@gmail.com>
Sat, 6 Dec 2014 10:39:32 +0000 (6 02:39 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 6 Dec 2014 10:39:32 +0000 (6 02:39 -0800)
tree7f2b99ed19db4f0502aa0b0268e6cf20773f1cb5
parent7c683d812e25a03af43a3198be8ff1d5d52bcad4
Keep track of a playing source's distance from the listener

The distance is stored as the square, to avoid an unnecessary square root
calculation.
src/context.cpp
src/context.h
src/main.h
src/source.cpp
src/source.h