the reason the original design doesnt work is due to parallel resistors not giving the required voltage at the stereo plug (due to voltage divider effects), by using opto's you are supplying discreet resistances which results in the correct voltages