aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/OggFind.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 23:05:33 +0100
committerMax Kellermann <max@duempel.org>2013-10-24 23:26:58 +0200
commitc76952534e0ab82b179d360f07beceb634a0a154 (patch)
tree3e06655eca02aa73af15947e09f8e5b015bf8751 /src/decoder/OggFind.hxx
parentf0060718def9b5f2a6ddc8f6f0659915ce468bfc (diff)
downloadmpd-c76952534e0ab82b179d360f07beceb634a0a154.tar.gz
mpd-c76952534e0ab82b179d360f07beceb634a0a154.tar.xz
mpd-c76952534e0ab82b179d360f07beceb634a0a154.zip
decoder/Opus: implement seeking
Diffstat (limited to 'src/decoder/OggFind.hxx')
-rw-r--r--src/decoder/OggFind.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/decoder/OggFind.hxx b/src/decoder/OggFind.hxx
index 703510fb5..ad51ccdf3 100644
--- a/src/decoder/OggFind.hxx
+++ b/src/decoder/OggFind.hxx
@@ -21,6 +21,7 @@
#define MPD_OGG_FIND_HXX
#include "check.h"
+#include "InputStream.hxx"
#include <ogg/ogg.h>
@@ -37,6 +38,13 @@ bool
OggFindEOS(OggSyncState &oy, ogg_stream_state &os, ogg_packet &packet);
/**
+ * Seek the #InputStream and find the next Ogg page.
+ */
+bool
+OggSeekPageAtOffset(OggSyncState &oy, ogg_stream_state &os, InputStream &is,
+ InputStream::offset_type offset, int whence);
+
+/**
* Try to find the end-of-stream (EOS) packet. Seek to the end of the
* file if necessary.
*