SFML-Website icon indicating copy to clipboard operation
SFML-Website copied to clipboard

docs(v3): usage of `loadFromSamples` is wrong

Open CosminPerRam opened this issue 9 months ago • 1 comments

sf::SoundBuffer::loadFromSamples usage in the v3 audio example docs is wrong:

Image

One must provide loadFromSamples with 5 arguments, the docs shows a call with 4 arguments, which does not compile due to 5th not having a default value.

Example error message upon removing the 5th argument: error C2660: 'sf::SoundBuffer::loadFromSamples': function does not take 4 arguments

Explanation of this argument should also be expected to be here.

Thanks for the wonderful work!

CosminPerRam avatar Apr 15 '25 19:04 CosminPerRam