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

Method myFinaliseInstance

src/core/dataMemory.cpp:191–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191int cDataMemory::myFinaliseInstance()
192{
193 // now finalise the levels (allocate storage memory and finalise config):
194 if (!levels.empty()) {
195 int i;
196 for (i=0; i<levels.size(); i++) {
197 // actually finalise now
198 SMILE_DBG(3,"finalising level %i (allocating buffer, etc.)",i);
199 int ret = levels[i]->finaliseLevel();
200 if (!ret) {
201 SMILE_IERR(1,"level '%s' could not be finalised!");
202 return 0;
203 }
204 }
205 // allocate reader config array
206 SMILE_DBG(4,"allocating reader positions in %i level(s)",levels.size());
207 for (i=0; i<levels.size(); i++) {
208 levels[i]->allocReaders();
209 }
210 } else {
211 SMILE_ERR(1,"it makes no sense to finalise a dataMemory without levels! cannot finalise dataMemory '%s'!",getInstName());
212 return 0;
213 }
214 return 1;
215}
216
217const sDmLevelConfig * cDataMemory::queryReadConfig(int llevel, long blocksizeReader)
218{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
finaliseLevelMethod · 0.80
allocReadersMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected