MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / engine_getInputInfos

Function engine_getInputInfos

src_cpp/yaafe-python/yaafecoreEngine.cpp:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93struct IOInfo* engine_getInputInfos(void* engine,char* input) {
94 Engine* e = static_cast<Engine*>(engine);
95 OutputBuffer* buf = e->getInput(input);
96 if (buf==NULL)
97 return NULL;
98 ParameterMap params = e->getInputParams(input);
99 struct IOInfo* info = (struct IOInfo*) malloc(sizeof(struct IOInfo));
100 info->sampleRate = buf->info().sampleRate;
101 info->sampleStep = buf->info().sampleStep;
102 info->frameLength = buf->info().frameLength;
103 info->size = buf->info().size;
104 info->parameters = engine_buildParameterMap(params);
105 return info;
106}
107
108struct IOInfo* engine_getOutputInfos(void* engine, char* output) {
109 Engine* e = static_cast<Engine*>(engine);

Callers

nothing calls this directly

Calls 3

engine_buildParameterMapFunction · 0.85
getInputMethod · 0.80
getInputParamsMethod · 0.80

Tested by

no test coverage detected