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

Function engine_getOutputInfos

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

Source from the content-addressed store, hash-verified

106}
107
108struct IOInfo* engine_getOutputInfos(void* engine, char* output) {
109 Engine* e = static_cast<Engine*>(engine);
110 InputBuffer* buf = e->getOutput(output);
111 if (buf==NULL)
112 return NULL;
113 ParameterMap params = e->getOutputParams(output);
114 struct IOInfo* info = (struct IOInfo*) malloc(sizeof(struct IOInfo));
115 info->sampleRate = buf->info().sampleRate;
116 info->sampleStep = buf->info().sampleStep;
117 info->frameLength = buf->info().frameLength;
118 info->size = buf->info().size;
119 info->parameters = engine_buildParameterMap(params);
120 return info;
121}
122
123void engine_freeIOInfos(struct IOInfo* i) {
124 char** ptr = i->parameters;

Callers

nothing calls this directly

Calls 3

engine_buildParameterMapFunction · 0.85
getOutputMethod · 0.80
getOutputParamsMethod · 0.80

Tested by

no test coverage detected