Re playing file_source?

is there a way to replay gr.file_source?
by replay, I mean controlled replay, not the repeat that’s already an
option
within the function.
I can’t use the repeat, because I need the file to play once (and just
once), change the frequency of the daughterboard, then play the file
just
once, and so on.
So while the daughterboard is retuning, I need the file to stop playing,
and
I need to make sure the board is retuned before the file starts playing
so
no information is lost.

Any help would be great.

Thanks a lot.

View this message in context:
http://old.nabble.com/replaying-file_source--tp32149011p32149011.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Wed, Jul 27, 2011 at 11:36 AM, Minhoo K. [email protected] wrote:

Any help would be great.

Thanks a lot.

Take a look at the documentation for that function:
http://gnuradio.org/doc/doxygen/index.html

There is a “seek” method that you can use. To reset the source to the
beginning of the file, you can use seek(0, SEEK_SET).

Tom