aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmosdr/source.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmosdr/source.h')
-rw-r--r--include/osmosdr/source.h9
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
*/