Reformat code, extract utils and audio engine.
Extract audio engine.
Extract more functions into util and audio.
Fixed audio module.