Large-scale code cleanup. Also adds a license to the top of all files that were missing it.
Ensures no uninitialized values end up in the audio cache.
While planar audio cannot be used for playback, it's much easier for processing. This should lead to cleaner and easier to write code in the future.