mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-14 07:43:14 +00:00
Added SDL_GetAudioFormatName()
Fixes https://github.com/libsdl-org/SDL/issues/10489
This commit is contained in:
@@ -1996,6 +1996,18 @@ extern SDL_DECLSPEC int SDLCALL SDL_ConvertAudioSamples(const SDL_AudioSpec *src
|
||||
Uint8 **dst_data,
|
||||
int *dst_len);
|
||||
|
||||
/**
|
||||
* Get the human readable name of an audio format.
|
||||
*
|
||||
* \param format the audio format to query.
|
||||
* \returns the human readable name of the specified audio format or
|
||||
* "SDL_AUDIO_UNKNOWN" if the format isn't recognized.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC const char * SDLCALL SDL_GetAudioFormatName(SDL_AudioFormat format);
|
||||
|
||||
/**
|
||||
* Get the appropriate memset value for silencing an audio format.
|
||||
|
||||
Reference in New Issue
Block a user