aboutsummaryrefslogtreecommitdiffstats
path: root/lib/source_iface.h
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2014-03-10 17:16:05 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2014-03-10 17:16:05 +0100
commite0d1fb0377e49cd8ba07906b21bbe41c8705f1b6 (patch)
treef28dad7f19851e220d719f449677b08ee1f5a98b /lib/source_iface.h
parent66109099132946b77c5e0b4603384a9194bf6694 (diff)
file: expose seek function in public API
Diffstat (limited to 'lib/source_iface.h')
-rw-r--r--lib/source_iface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/source_iface.h b/lib/source_iface.h
index 659a702..cc3f73b 100644
--- a/lib/source_iface.h
+++ b/lib/source_iface.h
@@ -38,6 +38,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 ) { return false; }
+
+ /*!
* Get the possible sample rates for the underlying radio hardware.
* \return a range of rates in Sps
*/