.\" 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_GetTrackAudioStream:
.\"   https://wiki.libsdl.org/SDL3_mixer/MIX_GetTrackAudioStream
.\" 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_GetTrackAudioStream
.\" 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_GetTrackAudioStream 3 "SDL_mixer 3.2.4" "SDL_mixer" "SDL_mixer3 FUNCTIONS"
.SH NAME
MIX_GetTrackAudioStream \- Query the SDL_AudioStream assigned to a track\[char46]
.SH SYNOPSIS
.nf
.B #include <SDL3_mixer/SDL_mixer.h>
.PP
.BI "SDL_AudioStream * MIX_GetTrackAudioStream(MIX_Track *track);
.fi
.SH DESCRIPTION
This returns the SDL_AudioStream object currently assigned to
.BR track
through a call to
.BR MIX_SetTrackAudioStream ()\[char46]
If there is none assigned, or the track has an input that isn\(aqt an SDL_AudioStream (such as a
.BR MIX_Audio
or SDL_IOStream), this will return NULL\[char46]
.PP
On various errors
.BR "" ( MIX_Init ()
was not called, the track is NULL), this returns NULL, but there is no mechanism to distinguish errors from tracks without a valid input\[char46]

.SH FUNCTION PARAMETERS
.TP
.I track
the track to query\[char46]
.SH RETURN VALUE
Returns an SDL_AudioStream if available, NULL if not\[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]

.SH SEE ALSO
.BR MIX_GetTrackAudio (3)
