MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / Seek

Method Seek

src/decoder/plugins/VorbisDecoderPlugin.cxx:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112};
113
114bool
115VorbisDecoder::Seek(uint64_t where_frame)
116{
117 assert(IsSeekable());
118 assert(input_stream.IsSeekable());
119 assert(input_stream.KnownSize());
120
121 const ogg_int64_t where_granulepos(where_frame);
122
123 try {
124 SeekGranulePos(where_granulepos);
125 vorbis_synthesis_restart(&dsp);
126 return true;
127 } catch (...) {
128 return false;
129 }
130}
131
132void
133VorbisDecoder::OnOggBeginning(const ogg_packet &_packet)

Callers 1

vorbis_stream_decodeFunction · 0.45

Calls 1

IsSeekableFunction · 0.85

Tested by

no test coverage detected