This aliases the ripple to a DC component. Assuming the sample event occurs at the same phase against the ripple waveform, and that the ripple doesn't change in waveform profile, then it will remain constant and DC, and can be subtracted after a one-point (or better) calibration (i.e., zeroing).
Or the phase can be adjusted so the sample event coincides with a zero crossing of the ripple, nulling it.
Or an averaging sampler can be used which integrates over the whole sample period, rather than a short sampling aperture, and the phase will be unimportant (this is characteristic of sigma-delta ADCs, of course).
If the desired signal doesn't even include DC (i.e., it's AC coupled, typical of an audio application), the DC can be filtered digitally without any need for matching phase; the frequency difference (Fripple - Fs) only need be within the stop band by a suitable margin (-xx dB?). Of course, if phase is locked, frequency difference is guaranteed at zero, which gives infinite attenuation on most high pass filter designs.
Tim