decoder/ogg: move code to SeekByte()
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "lib/xiph/OggVisitor.hxx"
|
||||
#include "decoder/Reader.hxx"
|
||||
#include "input/Offset.hxx"
|
||||
|
||||
class OggDecoder : public OggVisitor {
|
||||
ogg_int64_t end_granulepos;
|
||||
@@ -53,6 +54,13 @@ protected:
|
||||
return end_granulepos > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Seek the #InputStream and update the #OggVisitor.
|
||||
*
|
||||
* Throws on error.
|
||||
*/
|
||||
void SeekByte(offset_type offset);
|
||||
|
||||
void SeekGranulePos(ogg_int64_t where_granulepos);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user