Made sound volume affected by atmosphere.

Should stop sounds playing if the source is in space.
Changelog
Changed to use simulated casting.
Added explanation of added code, so maintenance is easier.
Merge pull request #1794 from ComicIronic/SoundAir

Made sound volume affected by atmosphere.