Reapplied all the changes of the "spu2-portaudio" branch on top of the current trunk.