home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / mmstereo / mltamp.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.8 KB  |  92 lines

  1. /******************************************************************************
  2. * .FILE:         mltamp.hpp                                                   *
  3. *                                                                             *
  4. * .DESCRIPTION:  Multimedia Stereo Sample:             Class Definitions      *
  5. *                                                                             *
  6. * .CLASSES:      Amp                                                          *
  7. *                AmpHandler                                                   *
  8. *                                                                             *
  9. * .COPYRIGHT:                                                                 *
  10. *    Licensed Material - Program-Property of IBM                              *
  11. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  12. *                                                                             *
  13. * .DISCLAIMER:                                                                *
  14. *   The following [enclosed] code is sample code created by IBM               *
  15. *   Corporation.  This sample code is not part of any standard IBM product    *
  16. *   and is provided to you solely for the purpose of assisting you in the     *
  17. *   development of your applications.  The code is provided 'AS IS',          *
  18. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  19. *   arising out of your use of the sample code, even if they have been        *
  20. *   advised of the possibility of such damages.                               *
  21. *                                                                             *
  22. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  23. *                                                                             *
  24. ******************************************************************************/
  25. #ifndef _MLTAMP_
  26. #define _MLTAMP_
  27. #include <imcelcv.hpp>
  28. #include <immamix.hpp>
  29. #include <icslider.hpp>
  30. #include <isldahdr.hpp>
  31. #include <ictlevt.hpp>
  32. #include <istattxt.hpp>
  33. #include "mltamp.h"
  34.  
  35. class AmpHandler    : public ISliderArmHandler {
  36. typedef ISliderArmHandler
  37.   Inherited;
  38. //**************************************************************************
  39. // Class:   AmpHandler                                                     *
  40. //                                                                         *
  41. // Purpose: Provide a Handler for processing the sliders on the Amp.       *
  42. //          It is a subclass of ISliderArmHandler                          *
  43. //                                                                         *
  44. //**************************************************************************
  45. public:
  46.  
  47.   AmpHandler ();
  48.  
  49. virtual Boolean
  50.   moving     (IControlEvent& evt);
  51. };
  52.  
  53.  
  54. class Amp    : public IMultiCellCanvas {
  55. //**************************************************************************
  56. // Class:   Amp                                                            *
  57. //                                                                         *
  58. // Purpose: Provide a Amp for use by all of the devices.                   *
  59. //          It is a subclass of IMultiCell                                 *
  60. //                                                                         *
  61. //**************************************************************************
  62. public:
  63.  
  64.   Amp(IMMAmpMixer*      pAmp1,
  65.       IMMAmpMixer*      pAmp2,
  66.       IMMAmpMixer*      pAmp3,
  67.       unsigned long     windowid,
  68.       IWindow*          parent,
  69.       IWindow*          owner);
  70.  
  71. ICircularSlider
  72.   slVolume,
  73.   slBalance,
  74.   slBass,
  75.   slTreble,
  76.   slPitch,
  77.   slGain;
  78.  
  79.  
  80. IMMAmpMixer
  81.   *pAmpMixer1,
  82.   *pAmpMixer2,
  83.   *pAmpMixer3;
  84.  
  85. AmpHandler
  86.   ampHandler;
  87.  
  88. IStaticText
  89.   name;
  90. };
  91. #endif
  92.