add i_gsamp_bg/i_gsampf_bg functions, sample based versions of