Skip to content

docs(v3): usage of loadFromSamples is wrong #259

@CosminPerRam

Description

@CosminPerRam

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions