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

Method myFinaliseInstance

plugindev/exampleGuipluginSink.cpp:253–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253int cExampleGuipluginSink::myFinaliseInstance()
254{
255 // FIRST call cDataSink myFinaliseInstance, this will finalise our dataWriter...
256 int ret = cDataSink::myFinaliseInstance();
257
258 /* if that was SUCCESSFUL (i.e. ret == 1), then do some stuff like
259 loading models or opening output files: */
260
261 if ((ret)&&(filename != NULL)) {
262 fHandle = fopen(filename,"w");
263 if (fHandle == NULL) {
264 SMILE_IERR(1,"failed to open file '%s' for writing!",filename);
265 COMP_ERR("aborting");
266 //return 0;
267 }
268 }
269
270 //fo = new openSmilePluginGUI::TestForm();
271 //IMPLEMENT_APP_NO_MAIN(appname)
272 if (!(int)smileThreadCreate(guiThr, wxAppThreadRunner, this)) {
273 SMILE_IERR(1,"error creating GUI thread!!");
274 }
275
276 return ret;
277}
278
279
280eTickResult cExampleGuipluginSink::myTick(long long t)

Callers

nothing calls this directly

Calls 1

smileThreadCreateFunction · 0.85

Tested by

no test coverage detected