diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-03-10 17:16:05 +0100 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-03-10 17:16:05 +0100 |
commit | e0d1fb0377e49cd8ba07906b21bbe41c8705f1b6 (patch) | |
tree | f28dad7f19851e220d719f449677b08ee1f5a98b /include/osmosdr/source.h | |
parent | 66109099132946b77c5e0b4603384a9194bf6694 (diff) |
file: expose seek function in public API
Diffstat (limited to 'include/osmosdr/source.h')
-rw-r--r-- | include/osmosdr/source.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmosdr/source.h b/include/osmosdr/source.h index ca718e8..2bd3213 100644 --- a/include/osmosdr/source.h +++ b/include/osmosdr/source.h @@ -58,6 +58,15 @@ public: virtual size_t get_num_channels( void ) = 0; /*! + * \brief seek file to \p seek_point relative to \p whence + * + * \param seek_point sample offset in file + * \param whence one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek) + * \return true on success + */ + virtual bool seek( long seek_point, int whence, size_t chan = 0 ) = 0; + + /*! * Get the possible sample rates for the underlying radio hardware. * \return a range of rates in Sps */ |