.\" This manpage content is licensed under Creative Commons
.\"  Attribution 4.0 International (CC BY 4.0)
.\"   https://creativecommons.org/licenses/by/4.0/
.\" This manpage was generated from SDL_mixer's wiki page for MIX_GetAudioDecoderFormat:
.\"   https://wiki.libsdl.org/SDL3_mixer/MIX_GetAudioDecoderFormat
.\" Generated with SDL/build-scripts/wikiheaders.pl
.\"  revision 3.2.4+ds-1
.\" Please report issues in this manpage's content at:
.\"   https://github.com/libsdl-org/sdlwiki/issues/new
.\" Please report issues in the generation of this manpage from the wiki at:
.\"   https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20MIX_GetAudioDecoderFormat
.\" SDL_mixer can be found at https://libsdl.org/projects/SDL_mixer/
.de URL
\$2 \(laURL: \$1 \(ra\$3
..
.if \n[.g] .mso www.tmac
.TH MIX_GetAudioDecoderFormat 3 "SDL_mixer 3.2.4" "SDL_mixer" "SDL_mixer3 FUNCTIONS"
.SH NAME
MIX_GetAudioDecoderFormat \- Query the initial audio format of a
.BR MIX_AudioDecoder \[char46]

.SH SYNOPSIS
.nf
.B #include <SDL3_mixer/SDL_mixer.h>
.PP
.BI "bool MIX_GetAudioDecoderFormat(MIX_AudioDecoder *audiodecoder, SDL_AudioSpec *spec);
.fi
.SH DESCRIPTION
Note that some audio files can change format in the middle; some explicitly support this, but a more common example is two MP3 files concatenated together\[char46] In many cases, SDL_mixer will correctly handle these sort of files, but this function will only report the initial format a file uses\[char46]

.SH FUNCTION PARAMETERS
.TP
.I audiodecoder
the audio decoder to query\[char46]
.TP
.I spec
on success, audio format details will be stored here\[char46]
.SH RETURN VALUE
Returns true on success or false on failure; call SDL_GetError() for more information\[char46]

.SH THREAD SAFETY
It is safe to call this function from any thread\[char46]

.SH AVAILABILITY
This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46]

