| 106 | } |
| 107 | |
| 108 | struct 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 | |
| 123 | void engine_freeIOInfos(struct IOInfo* i) { |
| 124 | char** ptr = i->parameters; |
nothing calls this directly
no test coverage detected