View Single Post
Old 01-31-2018, 09:30 AM   #307
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default

Quote:
Originally Posted by cfillion View Post
You could check the state of the action Options: Toggle metronome:

Code:
GetToggleCommandState(40364)
Thanks. This worked fine. BTW, do you know what does flag argument means in Main_OnCommand method?

I'm also getting exception error when trying to request peak meter value, like:

Code:
int curVU = volToChar(Track_GetPeakInfo(tr, 0));
or simply
Code:
double curVU = Track_GetPeakInfo(tr, 0);
getting tr (track id) before with
Code:
int tid = 1;
MediaTrack *tr = CSurf_TrackFromID(tid, false);
UPD.

Last edited by fundorin; 01-31-2018 at 09:38 AM.
fundorin is offline   Reply With Quote