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

You're welcome.

Just as alternative, doing

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).

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