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

Method loadFromFile

src/SFML/Audio/SoundBuffer.cpp:108–116  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

106
107////////////////////////////////////////////////////////////
108bool SoundBuffer::loadFromFile(const std::filesystem::path& filename)
109{
110 InputSoundFile file;
111 if (file.openFromFile(filename))
112 return initialize(file);
113
114 err() << "Failed to open sound buffer from file" << std::endl;
115 return false;
116}
117
118
119////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

initializeFunction · 0.85
openFromFileMethod · 0.45

Tested by

no test coverage detected