Minor changes within comments
renamed onInputConnected to  onInputConfigured to avoid missundestanding
because some PC jacks can detect if a cable is connected.