Implemented location based audio panning and moved rate setting into layer