Changeset 1124

Show
Ignore:
Timestamp:
05/05/08 14:29:40 (16 years ago)
Author:
wagi
Message:

make it compile again and usable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/tests/test-volume.cpp

    r864 r1124  
    2222 */ 
    2323 
    24 #include "libavc/avc_function_block.h" 
    25 #include "libavc/avc_serialize.h" 
     24#include "libavc/audiosubunit/avc_function_block.h" 
     25#include "libutil/serialize.h" 
     26#include "libutil/cmd_serialize.h" 
    2627 
    2728#include "libieee1394/ieee1394service.h" 
    2829 
    2930const bool bVerbose = false; 
     31 
     32using namespace AVC; 
     33using namespace Util; 
     34using namespace Util::Cmd; 
    3035 
    3136short int 
     
    4045    fbCmd.setSubunitId( 0x00 ); 
    4146    fbCmd.setCommandType( AVCCommand::eCT_Status ); 
    42     fbCmd.m_pFBFeature->m_pVolume = new FunctionBlockFeatureVolume; 
     47    fbCmd.m_pFBFeature->m_audioChannelNumber = 0; 
     48    fbCmd.m_pFBFeature->m_controlSelector=FunctionBlockFeature::eCSE_Feature_Volume; 
     49    fbCmd.m_pFBFeature->m_pVolume->m_volume = 0; 
    4350 
    4451    fbCmd.setVerbose( bVerbose ); 
     
    6976    fbCmd.setSubunitId( 0x00 ); 
    7077    fbCmd.setCommandType( AVCCommand::eCT_Control ); 
    71     fbCmd.m_pFBFeature->m_pVolume = new FunctionBlockFeatureVolume; 
     78    fbCmd.m_pFBFeature->m_audioChannelNumber = 0; 
     79    fbCmd.m_pFBFeature->m_controlSelector=FunctionBlockFeature::eCSE_Feature_Volume; 
    7280    fbCmd.m_pFBFeature->m_pVolume->m_volume = vol; 
    7381