| 316 | } |
| 317 | |
| 318 | smileres_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 | |
| 342 | smileres_t smile_extaudiosource_write_data(smileobj_t *smileobj, const char *componentName, const void *data, int length) |
| 343 | { |
nothing calls this directly
no test coverage detected