gapk: Implement optional looping/rewinding of input files

Together with the recently-added throttling, this can be useful to
generate a continuous stream of RTP data from an input file.

Change-Id: I2d552695dfb4cc96039838e79e0f5ae25a6737c8
4 files changed