mixGetTrack3DPosition function mixer
Get a track's current position in 3D space.
If 3D positioning isn't enabled for this track, through a call to MIX_SetTrack3DPosition(), this will return (0,0,0).
\param track the track to query. \param position on successful return, will contain the track's position. \returns true on success or false 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.
\sa MIX_SetTrack3DPosition
extern SDL_DECLSPEC bool SDLCALL MIX_GetTrack3DPosition(MIX_Track *track, MIX_Point3D *position)
Implementation
bool mixGetTrack3DPosition(
Pointer<MixTrack> track,
Pointer<MixPoint3D> position,
) {
final mixGetTrack3DPositionLookupFunction = _libMixer
.lookupFunction<
Uint8 Function(Pointer<MixTrack> track, Pointer<MixPoint3D> position),
int Function(Pointer<MixTrack> track, Pointer<MixPoint3D> position)
>('MIX_GetTrack3DPosition');
return mixGetTrack3DPositionLookupFunction(track, position) == 1;
}