home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / vbstereo / readme.txt next >
Encoding:
Text File  |  1996-02-16  |  7.2 KB  |  177 lines

  1. **********************************************************************
  2. * DISCLAIMER OF WARRANTIES:                                          *
  3. *                                                                    *
  4. * The following enclosed code is sample code created by IBM          *
  5. * Corporation.  This sample code is not part of any standard IBM     *
  6. * product and is provided to you solely for the purpose of assisting *
  7. * you in the development of your applications.  The code is provided *
  8. * "AS IS", without warranty of any kind.  IBM shall not be liable    *
  9. * for any damages arising out of your use of the sample code, even   *
  10. * if they have been advised of the possibility of such damages.      *
  11. *                                                                    *
  12. **********************************************************************
  13.  
  14. VBSTEREO
  15.  
  16.   DESCRIPTION:
  17.        This application displays a CD player, wave
  18.        player, digital video player and an amplifier.
  19.  
  20.        CD PLAYER:
  21.                  The user can play, rewind, fast
  22.                  forward, stop, pause track forward and
  23.                  track backward. In addition, there is an
  24.                  eject button which will eject the CD
  25.                  from the player. Users can also select
  26.                  which track they desire be pressing the
  27.                  corresponding track number button and
  28.                  the enter button. There is also a
  29.                  display that shows the track number
  30.                  being played as well as the minutes
  31.                  and seconds that have elapsed in a
  32.                  given track.
  33.        WAVE PLAYER:
  34.                  The user can play, rewind, fast
  35.                  forward, stop, and pause. In addition,
  36.                  there is a load button which show a
  37.                  file dialog for file selection.
  38.                  VBSTEREO.WAV is provided for playing.
  39.  
  40.        DIGITAL VIDEO PLAYER:
  41.                  The user can play, rewind, fast
  42.                  forward, stop, and pause.
  43.                  In addition, there is a load button
  44.                  which show a file dialog for file
  45.                  selection.
  46.                  VBSTEREO.AVI is provided for playing.
  47.  
  48.        AMPLIFIER:
  49.                  Allows the user to set the volume, balance,
  50.                  bass, treble, pitch and gain by moving
  51.                  slider controls.
  52.  
  53.  
  54.  
  55.   CONCEPT/FEATURE:
  56.        Illustrates the use of CD player, wave player,
  57.        digital video player, amplifier/mixer, multi cell
  58.        canvas, animated push button, slider and
  59.        custom logic.
  60.  
  61.   SPECIAL NOTES:
  62.        A CD must be in the player prior to starting this
  63.        application.
  64.  
  65.  
  66.   HOW TO RUN THE SAMPLE:
  67.  
  68.        From within the WorkFrame environment:
  69.                  1. Open the VisualAge for C++ product object.
  70.                  2. Open the Guide to Samples notebook.
  71.                  3. Select "Visual Builder Samples" from the
  72.                     Component drop down list.
  73.                  4. Select "VBStereo" from the List of Samples.
  74.                  5. Click the "Open Project" button to open the
  75.                     project view.
  76.                  6. Click on the RUN button of the project's toolbar.
  77.  
  78.  
  79.        From the command line:
  80.                  1. Set the current drive as the drive where you
  81.                     installed the VisualAge C++ samples.
  82.                  2. Set the directory path for the this sample
  83.                     as follows:
  84.                        cd ibmcppw\samples\visbuild\vbstereo
  85.                  3. Type the name of the .EXE file, VBSTEREO.
  86.  
  87.  
  88.   HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
  89.  
  90.        From within the WorkFrame environment:
  91.                  Open the sample project view as described
  92.                  above. In the project window you will see
  93.                  the icons of the files associated with the sample.
  94.  
  95.                  1. From the project view of this sample, select
  96.                     "Visual" from the Project pulldown.
  97.                  2. Select all the parts "Visual Parts"
  98.                     list and then select "Part->Generate->Part source"
  99.                     from the Menubar.
  100.  
  101.  
  102.                  3. Select only the "VBStereo" part in
  103.                     the "Visual Parts" list and then
  104.                     select "Part->Generate->main() for
  105.                     part" from the Menubar.
  106.                  4. Now invoke a Project Build Action.
  107.  
  108.                  To run the sample project, see How to
  109.                  run the sample project above.
  110.  
  111.        From the command line:
  112.                  1. Set the current drive as the drive where you
  113.                     installed the VisualAge C++ samples.
  114.                  2. Set the directory path for this sample
  115.                     as follows:
  116.                        cd ibmcppw\samples\visbuild\vbstereo
  117.                     This will allow Visual Builder to automatically
  118.                     load all the Visual Builder "class files"
  119.                     this samples uses.  These files are listed
  120.                     in the file VBLOAD.DAT in this directory.
  121.                  3. Start the Visual Builder Tool by typing the
  122.                     following from the command line:
  123.                        ivb
  124.                  4. Select all the parts in the "Visual
  125.                     Parts" list and then select
  126.                     "Part->Generate->Part source"
  127.                     from the Menubar.
  128.  
  129.  
  130.                  5. Select only the "VBStereo" part in
  131.                     the "Visual Parts" list and then
  132.                     select "Part->Generate->main() for
  133.                     part" from the Menubar.
  134.                  6. Build the EXE by executing the MAKE as follows:
  135.                        nmake vbstereo.mak
  136.  
  137.  
  138.   HOW TO INSPECT THE VISUAL PARTS USING THE VISUAL BUILDER
  139.  
  140.        There are five "class files" that make up the
  141.        application, VBCDPLYR.VBB, VBMIXER.VBB,
  142.        VBSTEREO.VBB, VBVIDEO.VBB, and VBWAVE.VBB.
  143.        The application also requires VBMM.VBB and
  144.        VBSAMPLE.VBB which are shipped as part of the
  145.        base product.
  146.  
  147.               1. Start the Visual Builder Tool --
  148.                  from the command line:
  149.                  - Set the current drive as the drive where you
  150.                    installed the VisualAge C++ samples.
  151.                  - Set the directory path for this sample
  152.                    as follows:
  153.                       cd ibmcppw\samples\visbuild\vbstereo
  154.                  - Type:
  155.                       ivb
  156.  
  157.                  or from the project view of the
  158.                  sample, select Visual from the Project
  159.                  pulldown.
  160.  
  161.          2. When the Visual Builder Window appears,
  162.             you may now select any or all of these
  163.             parts from the "Visual Parts" list and then
  164.             select "Part->Open" from the Menubar to
  165.             open these parts for viewing and/or
  166.             editting.
  167.  
  168.  
  169.   ADDITIONAL INFORMATION:
  170.        For additional information on this and other samples shipped
  171.        with the VisualAge for C++ product, please see the Guide to Samples
  172.        notebook.
  173.  
  174.        To access the notebook from Program Manager, open the
  175.        VisualAge for C++ product object, then open the Guide to Samples
  176.        notebook.
  177.