move setup of AudioUnit from getAudioUnit into separate function