There are also “multiplying DACs”, such as the ADI AD55xx series, where an external signal input replaces the DC reference in a normal DAC. This allows a digital word to determine the gain from that input, typically through an op amp current to voltage amplifier. With an appropriate choice of DAC and supply voltages, this works with an AC analog input signal.