DSP sample functions