Cleaned up getDevCaps in midi part. Implemented asynchronous waveIn recording using a thread.
the resulting compilation failures).