Many fixes and changes: POLLIN for input, not POLLOUT. Open and close ALports in the audio-process-thread. Proper semaphore communication now. Hopefully stable enough now (for beta release?).