MCPcopy Create free account
hub / github.com/audeering/opensmile / myTick

Method myTick

plugindev/plug_exampleSink.cpp:86–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84*/
85
86eTickResult cExampleSinkPlugin::myTick(long long t)
87{
88 SMILE_IDBG(4,"tick # %i, reading value vector:",t);
89 cVector *vec= reader_->getFrameRel(lag); //new cVector(nValues+1);
90 if (vec == NULL) return TICK_SOURCE_NOT_AVAIL;
91 else reader_->nextFrame();
92
93 long vi = vec->tmeta->vIdx;
94 double tm = vec->tmeta->time;
95
96 // now print the vector:
97 SMILE_IMSG(2,"FUCKING AWSOME PLUGIN OUTPUT:");
98 int i;
99 for (i=0; i<vec->N; i++) {
100 printf(" (a=%ld vi=%ld, tm=%fs) %s.%s = %f\n",reader_->getCurR(),vi,tm,reader_->getLevelName().c_str(),vec->name(i).c_str(),vec->data[i]);
101 }
102
103// SMILE_PRINT("%i",var1,)
104
105 return TICK_SUCCESS;
106}
107
108
109cExampleSinkPlugin::~cExampleSinkPlugin()

Callers

nothing calls this directly

Calls 6

getFrameRelMethod · 0.80
nextFrameMethod · 0.80
c_strMethod · 0.80
getCurRMethod · 0.45
getLevelNameMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected