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

Method read

src/SFML/Audio/InputSoundFile.cpp:302–311  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

300
301////////////////////////////////////////////////////////////
302std::uint64_t InputSoundFile::read(std::int16_t* samples, std::uint64_t maxCount)
303{
304 assert(m_reader);
305
306 std::uint64_t readSamples = 0;
307 if (samples && maxCount)
308 readSamples = m_reader->read(samples, maxCount);
309 m_sampleOffset += readSamples;
310 return readSamples;
311}
312
313
314////////////////////////////////////////////////////////////

Callers 11

readFunction · 0.45
readFunction · 0.45
loadFromFileMethod · 0.45
loadFromStreamMethod · 0.45
getFileContentsFunction · 0.45
getStreamContentsFunction · 0.45
sendMethod · 0.45
initializeMethod · 0.45
onGetDataMethod · 0.45
setupShadersMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected