home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / immabuf.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.4 KB  |  76 lines

  1. #ifndef _IMMABUF_
  2.    #define _IMMABUF_
  3. /*******************************************************************************
  4. * FILE NAME:  immabuf.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMMAudioBuffer                                                           *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <ibase.hpp>
  19.  
  20. class IMMAudioBufferData;
  21. class IString;
  22.  
  23. #pragma pack(4)
  24.  
  25.  
  26. class IMMAudioBuffer : public IBase {
  27. typedef IBase
  28.   Inherited;
  29. public:
  30. /*----------------------------- Constructors ---------------------------------*/
  31.   IMMAudioBuffer  ( void* audioData,
  32.                     unsigned long dataLength );
  33.   IMMAudioBuffer  ( unsigned long dataLength = 0 );
  34.   IMMAudioBuffer  ( const IMMAudioBuffer& audioBuffer );
  35.  
  36. IMMAudioBuffer
  37.   &operator =     ( const IMMAudioBuffer& audioBuffer );
  38.  
  39.   ~IMMAudioBuffer ( );
  40. /*-------------------------------- Format ------------------------------------*/
  41. enum Format
  42. {
  43.   pcm      = 0x0001,
  44.   adpcm,
  45.   ibmcvsd  = 0x0005,
  46.   alaw,
  47.   mulaw,
  48.   okiadpcm = 0x0010,
  49.   dviadpcm,
  50.   digistd  = 0x0015,
  51.   digifix,
  52.   ibmmulaw = 0x0101,
  53.   ibmalaw,
  54.   avcadpcm,
  55.   ctadpcm  = 0x0200
  56. };
  57.  
  58.  
  59. private:
  60. /*--------------------------------- Private ----------------------------------*/
  61. IString
  62.   *fBuffer;
  63. void
  64.   *fHeader;
  65. unsigned long
  66.   fLength;
  67. IMMAudioBufferData
  68.   *fAudioBufferData;
  69.  
  70. }; // IMMAudioBuffer
  71.  
  72.  
  73. #pragma pack()
  74.  
  75. #endif /* _IMMABUF_ */
  76.