Logic to init portaudio.