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

Method SoundBuffer

src/SFML/Audio/SoundBuffer.cpp:44–48  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

42{
43////////////////////////////////////////////////////////////
44SoundBuffer::SoundBuffer(const std::filesystem::path& filename)
45{
46 if (!loadFromFile(filename))
47 throw Exception("Failed to open sound buffer from file");
48}
49
50
51////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

updateFunction · 0.50
getChannelCountMethod · 0.45
getSampleRateMethod · 0.45

Tested by

no test coverage detected