added setting of number of i/o channels in portaudio engine