libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
79 stars 32 forks source link

fix a misinformation on Mix_HaltChannel.md #542

Closed APGR22 closed 3 months ago

APGR22 commented 3 months ago

Sorry for my bad english.

I have noticed on https://wiki.libsdl.org/SDL2_mixer/Mix_HaltChannel and https://wiki.libsdl.org/SDL3_mixer/Mix_HaltChannel say "Returns 0 on success, or -1 on error.", but in SDL2/src/mixer.c and SDL3/src/mixer.c are only return 0 without any error code.

slouken commented 3 months ago

We may add error return cases in the future, so we'll leave this as-is.

Thanks!