From 6a40a8eb12f93c9b20b1fdca706ae838ff46da9d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 25 May 2024 23:33:02 -0400 Subject: [PATCH] audio: Minor documentation clarifications. --- include/SDL3/SDL_audio.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/SDL3/SDL_audio.h b/include/SDL3/SDL_audio.h index 79a9ea67c4..64dbff0bfd 100644 --- a/include/SDL3/SDL_audio.h +++ b/include/SDL3/SDL_audio.h @@ -420,7 +420,11 @@ extern SDL_DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver(void); * This only returns a list of physical devices; it will not have any device * IDs returned by SDL_OpenAudioDevice(). * - * \param count a pointer filled in with the number of devices returned + * If this function returns NULL, to signify an error, `*count` will be set + * to zero. + * + * \param count a pointer filled in with the number of devices returned. NULL + * is allowed. * \returns a 0 terminated array of device instance IDs which should be freed * with SDL_free(), or NULL on error; call SDL_GetError() for more * details. @@ -445,7 +449,11 @@ extern SDL_DECLSPEC SDL_AudioDeviceID *SDLCALL SDL_GetAudioOutputDevices(int *co * This only returns a list of physical devices; it will not have any device * IDs returned by SDL_OpenAudioDevice(). * - * \param count a pointer filled in with the number of devices returned + * If this function returns NULL, to signify an error, `*count` will be set + * to zero. + * + * \param count a pointer filled in with the number of devices returned. NULL + * is allowed. * \returns a 0 terminated array of device instance IDs which should be freed * with SDL_free(), or NULL on error; call SDL_GetError() for more * details.