Fixes to audio attenuation jumps and better sample loop script

Coding Standard: this line is a continuation of the previous line. It should be indented. 

**2.1.6. The incompleteness of split lines must be made obvious.** - https://github.com/highfidelity/hifi/wiki/Coding-Standard#216-the-incompleteness-of-split-lines-must-be-made-obvious