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

Method loadFromStream

src/SFML/Audio/SoundBuffer.cpp:132–140  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

130
131////////////////////////////////////////////////////////////
132bool SoundBuffer::loadFromStream(InputStream& stream)
133{
134 InputSoundFile file;
135 if (file.openFromStream(stream))
136 return initialize(file);
137
138 err() << "Failed to open sound buffer from stream" << std::endl;
139 return false;
140}
141
142
143////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.85
openFromStreamMethod · 0.45

Tested by

no test coverage detected