Capsule the audio processing better into their own functions.