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

Function streamSeek

src/SFML/Audio/SoundFileReaderFlac.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65FLAC__StreamDecoderSeekStatus streamSeek(const FLAC__StreamDecoder*, FLAC__uint64 absoluteByteOffset, void* clientData)
66{
67 auto* data = static_cast<sf::priv::SoundFileReaderFlac::ClientData*>(clientData);
68
69 if (data->stream->seek(static_cast<std::size_t>(absoluteByteOffset)).has_value())
70 return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
71
72 return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
73}
74
75FLAC__StreamDecoderTellStatus streamTell(const FLAC__StreamDecoder*, FLAC__uint64* absoluteByteOffset, void* clientData)
76{

Callers

nothing calls this directly

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected