mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-24 15:02:00 +00:00
Added SDL_GetAudioFormatName()
Fixes https://github.com/libsdl-org/SDL/issues/10489
This commit is contained in:
parent
74504e0965
commit
4cc3410dce
6 changed files with 98 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue