286 | | // if(cnt == 0) { |
---|
287 | | // Control::CrossbarRouter::NameVector n; |
---|
288 | | // n = c->getSourceNames(); |
---|
289 | | // for(int i=0; i<n.size(); i++) { |
---|
290 | | // printMessage("Src %02d: %s\n", i, n.at(i).c_str()); |
---|
291 | | // } |
---|
292 | | // n = c->getDestinationNames(); |
---|
293 | | // for(int i=0; i<n.size(); i++) { |
---|
294 | | // printMessage("Dest %02d: %s\n", i, n.at(i).c_str()); |
---|
295 | | // } |
---|
296 | | // } |
---|
297 | | // #define NELEMS 10 |
---|
298 | | // double peaks[NELEMS]; |
---|
299 | | // int srcids[NELEMS]; |
---|
300 | | // int dstidx = c->getDestinationIndex("MixerIn:00"); |
---|
301 | | // for(int i=0; i<NELEMS; i++) { |
---|
302 | | // srcids[i] = c->getSourceForDestination(dstidx + i); |
---|
303 | | // peaks[i] = c->getPeakValue(srcids[i], dstidx + i); |
---|
304 | | // } |
---|
305 | | // for(int i=0; i<NELEMS; i++) { |
---|
306 | | // std::string srcname = c->getSourceName(srcids[i]); |
---|
307 | | // std::string dstname = c->getDestinationName(dstidx + i); |
---|
308 | | // printMessage("Peak %3d (%10s => %10s): %f\n", i, srcname.c_str(), dstname.c_str(), peaks[i]); |
---|
309 | | // } |
---|
| 286 | std::map<std::string, double> peaks = c->getPeakValues(); |
---|
| 287 | for (std::map<std::string, double>::iterator it=peaks.begin(); it!=peaks.end(); |
---|
| 288 | ++it) { |
---|
| 289 | printMessage("%s: %g\n", it->first.c_str(), it->second); |
---|
| 290 | } |
---|