MMDevice API by William Adams (TINN integration attempt)