Why not encode to a high rate DTS5.1 or DD5.1 stream and send it out the S/PDIF, I'd be really surprised if you can hear artifacts with a full-rate dts/dca...