You're welcome.
Just as alternative, doing
Code:
MediaTrack *tr = CSurf_TrackFromID(tid, false);
if (tr) // or explicit: if (tr != NULL)
{
double curVU = volToChar(Track_GetPeakInfo(tr, 0));
}
should also work I think (and would reduce the CountTracks(0) call).
https://stackoverflow.com/questions/...pointer-in-c-c