MCPcopy Create free account
hub / github.com/SFML/SFML / seek

Method seek

src/SFML/Audio/SoundFileReaderOgg.cpp:197–202  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

195
196////////////////////////////////////////////////////////////
197void SoundFileReaderOgg::seek(std::uint64_t sampleOffset)
198{
199 assert(m_vorbis.datasource && "Vorbis datasource is missing. Call SoundFileReaderOgg::open() to initialize it.");
200
201 ov_pcm_seek(&m_vorbis, static_cast<ogg_int64_t>(sampleOffset / m_channelCount));
202}
203
204
205////////////////////////////////////////////////////////////

Callers 1

seekFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected