Fixed Mic input and replaced deprecated functions with proper iOS 7 alternative