View Single Post
Old 01-31-2018, 11:59 AM   #312
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

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

Last edited by nofish; 01-31-2018 at 12:17 PM.
nofish is offline   Reply With Quote