B2C2, Inc. - Software Development Kit

Code Sample Applications

The following sample Visual C++ projects are provided in the Code Samples directory of the SDK:

  Sample   Description  

Operating System
(Windows, Linux)

 

b2settuner

  Windows/Linux command-line application that tests the tuner interface.  
W, L
 

       
 

b2status

  Windows/Linux command-line application that tests tuner status.  
W, L
 

       
 

Test AV Filter

  Windows command line application that tests the Audio/Video PID interface to the B2C2 MPEG-2 filter.  
W
 

       
 

Test Data Filter

  Windows command-line application that tests the Data PID interface to the B2C2 MPEG-2 filter.  
W
 

       
 

TunerCtrl

  Windows application that tests the Tuner interface to the B2C2 MPEG-2 filter.  
W
 

       

(Windows) Building the Code Samples

See Windows SDK Installation.

(Windows) Running Command-line Code Samples

Code sample applications can be run directly from the command prompt by compiling, then typing the executable name followed by the command-line arguments specifying desired tuner and PID settings.

Note: Settings provided are for example only. Actual Tuner and PID settings vary with the local network.

Using *.bat Files

Each console-mode project contains one or more *.bat files. These files can be copied to the directory where the corresponding executable is located and run. For example, to test the Audio/Video interface of a satellite tuner, do the following:

  1. For debug project setting, copy the file run_tavf_sat.bat to the Debug directory.
  2. Edit run_tavf_sat.bat as desired and modify the command line parameters to tune to a channel on your satellite feed.
  3. Use an MS-DOS window to run the file, by typing its name: run_tavf_sat.bat
  4. You should see a new window pop-up which will render the Video; the Audio will be available as well.
  5. To terminate the test, either close the Video window, or terminate the run_tavf_sat.bat command by typing CTRL+C in the MS-DOS window.

Note: For convenience, executables of all of the code samples are included in the Bin directory, in Release and Debug versions.

Return to Top


Copyright © 1998-2002 B2C2, Inc. Proprietary and Confidential