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

Function smile_extsource_set_external_eoi

progsrc/smileapi/SMILEapi.cpp:318–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318smileres_t smile_extsource_set_external_eoi(smileobj_t *smileobj, const char *componentName)
319{
320 if (smileobj == NULL)
321 SMILE_FAIL_WITH(SMILE_INVALID_ARG, "smileobj argument must not be null");
322 if (componentName == NULL)
323 SMILE_FAIL_WITH(SMILE_INVALID_ARG, "componentName argument must not be null");
324 if (smileobj->state == SMILE_UNINITIALIZED)
325 SMILE_FAIL_WITH(SMILE_INVALID_STATE, "openSMILE must be initialized first");
326
327 cSmileComponent *component = smileobj->cMan->getComponentInstance(componentName);
328
329 if (component == NULL)
330 SMILE_FAIL_WITH(SMILE_COMP_NOT_FOUND, "specified component does not exist");
331
332 cExternalSource *externalSource = dynamic_cast<cExternalSource*>(component);
333
334 if (externalSource == NULL)
335 SMILE_FAIL_WITH(SMILE_COMP_NOT_FOUND, "specified component is not of type cExternalSource");
336
337 externalSource->setExternalEOI();
338
339 return SMILE_SUCCESS;
340}
341
342smileres_t smile_extaudiosource_write_data(smileobj_t *smileobj, const char *componentName, const void *data, int length)
343{

Callers

nothing calls this directly

Calls 2

getComponentInstanceMethod · 0.45
setExternalEOIMethod · 0.45

Tested by

no test coverage detected