Ported sampling to new sigrok API