corrected signifcant design errors in AudioIn.c