[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] re playing file_source?
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] re playing file_source? |
Date: |
Wed, 27 Jul 2011 21:18:22 -0400 |
On Wed, Jul 27, 2011 at 11:36 AM, Minhoo Kim <address@hidden> wrote:
>
> 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.
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