Another way of looping through all the tracks that are loaded into the engine is by using the FOREACH_TRACK macro.
Example:
FOREACH_TRACK(trk) {
do something with the track. For rxsmple lets check its name
char *name=STATE_track_get_name(trk);
}
#define FOREACH_TRACK(trk) for(DWORD trk=STATE_track_get_first_track(); trk!=NULL; trk=STATE_track_get_next(trk))
returns the point in pt[]
returns VR_ERROR if the index is too big or negative
else returns OK
|