Source code for a PIC-based automatic stereo audio switcher.