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

Method check

src/SFML/Audio/SoundFileReaderOgg.cpp:78–88  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

76{
77////////////////////////////////////////////////////////////
78bool SoundFileReaderOgg::check(InputStream& stream)
79{
80 OggVorbis_File file;
81 if (ov_test_callbacks(&stream, &file, nullptr, 0, callbacks) == 0)
82 {
83 ov_clear(&file);
84 return true;
85 }
86
87 return false;
88}
89
90
91////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected