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

Method myConfigureInstance

src/core/dataMemory.cpp:169–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int cDataMemory::myConfigureInstance()
170{
171 // check blocksizeconfig and update buffersizes of levels accordingly
172 if (!levels.empty()) {
173 int i;
174 for (i=0; i<levels.size(); i++) {
175 // do this for each level...
176 SMILE_IDBG(3,"configuring level %i ('%s') (checking buffersize and config)",i,levels[i]->getName());
177 int ret = levels[i]->configureLevel();
178 if (!ret) {
179 SMILE_IERR(1,"level '%s' could not be configured!", levels[i]->getName());
180 return 0;
181 }
182 }
183 } else {
184 SMILE_ERR(1,"it makes no sense to configure a dataMemory without levels! cannot configure dataMemory '%s'!",getInstName());
185 return 0;
186 }
187
188 return 1;
189}
190
191int cDataMemory::myFinaliseInstance()
192{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
configureLevelMethod · 0.80
emptyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected