A small correction here: 90%+ of audio I/O ports aren't general-purpose. This is because there are almost always DC-blocker circuits on each output, commonly a series capacitor. With very few exceptions, you can't use your soundcard to provide an accurate DC output such as a control voltage.