Show
Ignore:
Timestamp:
01/04/10 13:10:45 (11 years ago)
Author:
arnonym
Message:

Rewrite the RouterConfig? and save lots of code.

Plus, it seems I fixed a "bug" where the device would output a high pitched sound when an output was disconnected. Now this seems gone...

Next stop: PeakSpace?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/dbus/controlserver.cpp

    r1776 r1779  
    942942CrossbarRouter::getPeakValues() 
    943943{ 
    944     return std::vector< DBus::Struct<DBus::String, double> >(); 
     944    std::map<std::string, double> peakvalues = m_Slave.getPeakValues(); 
     945    std::vector< DBus::Struct<DBus::String, double> > ret; 
     946    for (std::map<std::string, double>::iterator it=peakvalues.begin(); it!=peakvalues.end(); ++it) { 
     947        DBus::Struct<DBus::String, double> tmp; 
     948        tmp._1 = it->first; 
     949        tmp._2 = it->second; 
     950        ret.push_back(tmp); 
     951    } 
     952    return ret; 
    945953    /*std::vector< DBus::Struct<int, double> > out; 
    946954    Control::CrossbarRouter::PeakValues values = m_Slave.getPeakValues();