summaryrefslogtreecommitdiff
path: root/src/decoder/DecoderAPI.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 11:27:41 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 11:27:41 +0200
commit8561c9c5a6e43c40fe9ee6a450ff94ecffe82d69 (patch)
tree5ab3126c112638bc446fb3049b7d4bf1b4946c75 /src/decoder/DecoderAPI.hxx
parent23199719d957320e467ec958e03c4544ffefa773 (diff)
DecoderAPI: add decoder_seek_where_frame()
Diffstat (limited to 'src/decoder/DecoderAPI.hxx')
-rw-r--r--src/decoder/DecoderAPI.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/decoder/DecoderAPI.hxx b/src/decoder/DecoderAPI.hxx
index ddcead4b1..2464ee6fa 100644
--- a/src/decoder/DecoderAPI.hxx
+++ b/src/decoder/DecoderAPI.hxx
@@ -40,6 +40,8 @@
// IWYU pragma: end_exports
+#include <stdint.h>
+
class Error;
/**
@@ -99,6 +101,16 @@ unsigned
decoder_seek_where_ms(Decoder &decoder);
/**
+ * Call this when you have received the DecoderCommand::SEEK command.
+ *
+ * @param decoder the decoder object
+ * @return the destination position for the seek in frames
+ */
+gcc_pure
+uint64_t
+decoder_seek_where_frame(Decoder &decoder);
+
+/**
* Call this instead of decoder_command_finished() when seeking has
* failed.
*