Name

OfxParameterSuiteV1::paramGetKeyIndex — Finds the index of a keyframe at/before/after a specified time.

Synopsis

#include "ofxParam.h" 
OfxStatus(*paramGetKeyIndex)(OfxParamHandle paramHandle,
 OfxTimetime,
 int direction,
 int *index);
 

Arguments

  • paramHandle - parameter handle to search
  • time - what time to search from
  • direction -
    • == 0 indicates search for a key at the indicated time (some small delta)
    • > 0 indicates search for the next key after the indicated time
    • < 0 indicates search for the previous key before the indicated time
  • index - pointer to an integer which in which the index is returned set to -1 if no key was found

Returns