fix hanging audio thread due to small pipe size
fix crash due to unchecked return value from midi driver