[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] File seek - 1st attempt
From: |
cswiger |
Subject: |
[Discuss-gnuradio] File seek - 1st attempt |
Date: |
Tue, 1 Feb 2005 11:26:56 -0500 (EST) |
Since it's my itch to scratch, I made a (w)hack at it and
got promising results. Using as an example gr_freq_xlating_fir_filter
method set_center_freq, we add to
gr_file_source.cc:
void
gr_file_source::seek(long seek_point)
{
fseek ((FILE *) d_fp, seek_point, SEEK_SET);
}
and to gr_file_source.h
public:
void seek(long seek_point);
finally to gr_file_source.i
public
void seek (long seek_point);
recompile and it seems to work with initial testing comprised of
'press a key and seek to 100000' which always plays the same
material as expected. Cool.
--Chuck
- [Discuss-gnuradio] File seek - 1st attempt,
cswiger <=