mixGetTrackProperties function mixer

int mixGetTrackProperties(
  1. Pointer<MixTrack> track
)

Get the properties associated with a track.

Currently SDL_mixer assigns no properties of its own to a track, but this can be a convenient place to store app-specific data.

A SDL_PropertiesID is created the first time this function is called for a given track.

\param track the track to query. \returns a valid property ID on success or 0 on failure; 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 SDL_PropertiesID SDLCALL MIX_GetTrackProperties(MIX_Track *track)

Implementation

int mixGetTrackProperties(Pointer<MixTrack> track) {
  final mixGetTrackPropertiesLookupFunction = _libMixer
      .lookupFunction<
        Uint32 Function(Pointer<MixTrack> track),
        int Function(Pointer<MixTrack> track)
      >('MIX_GetTrackProperties');
  return mixGetTrackPropertiesLookupFunction(track);
}