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

Method loadFromMemory

src/SFML/Audio/SoundBuffer.cpp:120–128  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

118
119////////////////////////////////////////////////////////////
120bool SoundBuffer::loadFromMemory(const void* data, std::size_t sizeInBytes)
121{
122 InputSoundFile file;
123 if (file.openFromMemory(data, sizeInBytes))
124 return initialize(file);
125
126 err() << "Failed to open sound buffer from memory" << std::endl;
127 return false;
128}
129
130
131////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.85
openFromMemoryMethod · 0.45

Tested by

no test coverage detected