tta: use an integer instead of a pointer to iterate output samples