Fixes to audio attenuation jumps and better sample loop script

Would like to introduce a new variable here (for clarity) - negativeBearingRelativeAngleToSource.   I'll do this in a later checkin however.