[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] File seek - 1st attempt
From: |
cswiger |
Subject: |
Re: [Discuss-gnuradio] File seek - 1st attempt |
Date: |
Tue, 1 Feb 2005 12:03:52 -0500 (EST) |
On Tue, 1 Feb 2005, cswiger wrote:
> void
> gr_file_source::seek(long seek_point)
> {
> fseek ((FILE *) d_fp, seek_point, SEEK_SET);
> }
>
>
Actually, change that to SEEK_CUR (and maybe 'seek_value' instead
of 'point') and it'll go fwd and backwards from the current position
by the value passed. Then map a keystroke to call src.seek(10000000)
on '.' and src.seek(-10000000) on ',' or whatever and you can now
skip fwd and back by a few seconds. Works for me!
--Chuck