Use doubles instead of floats for the source offset calculations