Changeset 23

Show
Ignore:
Timestamp:
11/25/04 13:12:29 (18 years ago)
Author:
pieterpalmers
Message:

- Added two more parsers, only one left to have a complete parsing framework for

the Status descriptor.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freebob/src/avaudioinfoblock.cpp

    r22 r23  
    3636                bValid=false; 
    3737        }        
     38        debugPrint(DEBUG_LEVEL_INFO,"AvAudioInfoBlock: Creating... length=0x%04X\n",getLength()); 
    3839         
    3940        // PP: I assume that there is only an audio block, no optional blocks. 
    4041        cNameInfoBlock=new AvNameInfoBlock(parent, address+7); 
     42        debugPrint(DEBUG_LEVEL_INFO,"AvAudioInfoBlock: Created\n"); 
    4143         
    4244} 
  • trunk/freebob/src/avaudiosyncinfoblock.cpp

    r22 r23  
    3535                bValid=false; 
    3636        } 
     37        debugPrint(DEBUG_LEVEL_INFO,"AvAudioSyncInfoBlock: Creating... length=0x%04X\n",getLength()); 
     38        debugPrint(DEBUG_LEVEL_INFO,"AvAudioSyncInfoBlock: Created\n"); 
     39 
    3740} 
    3841 
  • trunk/freebob/src/avmidiinfoblock.cpp

    r22 r23  
    4141        AvNameInfoBlock *tmpNameBlock; 
    4242         
     43        debugPrint(DEBUG_LEVEL_INFO,"AvMidiInfoBlock: Creating... length=0x%04X\n",getLength()); 
     44         
    4345        if (nb_streams>0) { 
    4446                position=address+7; 
     
    6062                 
    6163        } 
     64        debugPrint(DEBUG_LEVEL_INFO,"AvMidiInfoBlock: Created\n"); 
    6265         
    6366        // no optional info blocks please... 
  • trunk/freebob/src/ieee1394service.cpp

    r22 r23  
    3535#include "avmidiinfoblock.h" 
    3636#include "avaudiosyncinfoblock.h" 
     37#include "avsourcepluginfoblock.h" 
     38#include "avoutputplugstatusinfoblock.h" 
    3739 
    3840Ieee1394Service* Ieee1394Service::m_pInstance = 0; 
     
    294296                        delete testblock5; 
    295297                        delete testblock6; 
    296                                                                          
     298                         
     299                        // now try to parse a full source plug entry 
     300                        debugPrint (DEBUG_LEVEL_INFO, "    Trying to create an AvSourcePlugInfoBlock...\n"); 
     301                        AvSourcePlugInfoBlock *testblock7=new AvSourcePlugInfoBlock(testdesc_mid2,0x13); 
     302                         
     303                        debugPrint (DEBUG_LEVEL_INFO, "    Deleting AvSourcePlugInfoBlock...\n"); 
     304                         
     305                        delete testblock7; 
     306                         
     307                        // now try to parse the full music output plug status infoblock 
     308                        debugPrint (DEBUG_LEVEL_INFO, "    Trying to create an AvOutputPlugStatusInfoBlock...\n"); 
     309                        AvOutputPlugStatusInfoBlock *testblock8=new AvOutputPlugStatusInfoBlock(testdesc_mid2,0x0C); 
     310                         
     311                        debugPrint (DEBUG_LEVEL_INFO, "    Deleting AvOutputPlugStatusInfoBlock...\n"); 
     312                         
     313                        delete testblock8; 
     314                         
    297315                        debugPrint (DEBUG_LEVEL_INFO, "    Deleting AvMusicStatusDescriptor...\n"); 
    298316                        delete testdesc_mid2;                    
  • trunk/freebob/src/Makefile.am

    r22 r23  
    5353        avaudiosyncinfoblock.h \ 
    5454        avaudiosyncinfoblock.cpp \ 
     55        avsourcepluginfoblock.h \ 
     56        avsourcepluginfoblock.cpp \ 
     57        avoutputplugstatusinfoblock.h \ 
     58        avoutputplugstatusinfoblock.cpp \ 
    5559        debugmodule.cpp \ 
    5660        main.cpp