mixGetTrackMixer function mixer

Pointer<MixMixer> mixGetTrackMixer(
  1. Pointer<MixTrack> track
)

Get the MIX_Mixer that owns a MIX_Track.

This is the mixer pointer that was passed to MIX_CreateTrack().

\param track the track to query. \returns the mixer associated with the track, or NULL on error; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC MIX_Mixer * SDLCALL MIX_GetTrackMixer(MIX_Track *track)

Implementation

Pointer<MixMixer> mixGetTrackMixer(Pointer<MixTrack> track) {
  final mixGetTrackMixerLookupFunction = _libMixer
      .lookupFunction<
        Pointer<MixMixer> Function(Pointer<MixTrack> track),
        Pointer<MixMixer> Function(Pointer<MixTrack> track)
      >('MIX_GetTrackMixer');
  return mixGetTrackMixerLookupFunction(track);
}