Changeset 457

Show
Ignore:
Timestamp:
04/09/07 06:12:19 (16 years ago)
Author:
ppalmers
Message:

add get volume command for the GenericMixer?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/bebob/GenericMixer.cpp

    r455 r457  
    141141                } 
    142142                 
     143                if (type == "volume") { 
     144                    if ( !(nbArgs==6)) { 
     145                        debugWarning("set volume: Wrong nb of arguments\n"); 
     146                        return OscResponse(OscResponse::eError); 
     147                    } 
     148                    if(!m->getArgument(3).isNumeric()) { 
     149                        debugWarning("set volume: Wrong argument (3) type\n"); 
     150                        return OscResponse(OscResponse::eError); 
     151                    } 
     152 
     153                    int channel=m->getArgument(3).toInt(); 
     154                     
     155                    return mixerGetFeatureVolumeValue(id, channel); 
     156                } 
     157                 
    143158                return OscResponse(OscResponse::eError); 
    144159