mixCreateTrack function mixer
Create a new track on a mixer.
A track provides a single source of audio. All currently-playing tracks will be processed and mixed together to form the final output from the mixer.
There are no limits to the number of tracks on may create, beyond running out of memory, but in normal practice there are a small number of tracks that are reused between all loaded audio as appropriate.
Tracks are unique to a specific MIX_Mixer and can't be transferred between them.
\param mixer the mixer on which to create this track. \returns a new MIX_Track on success, NULL on error; call SDL_GetError() for more informations.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_mixer 3.0.0.
\sa MIX_DestroyTrack
extern SDL_DECLSPEC MIX_Track * SDLCALL MIX_CreateTrack(MIX_Mixer *mixer)
Implementation
Pointer<MixTrack> mixCreateTrack(Pointer<MixMixer> mixer) {
final mixCreateTrackLookupFunction = _libMixer
.lookupFunction<
Pointer<MixTrack> Function(Pointer<MixMixer> mixer),
Pointer<MixTrack> Function(Pointer<MixMixer> mixer)
>('MIX_CreateTrack');
return mixCreateTrackLookupFunction(mixer);
}