home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09964.iso / sound / mpw32-5s.zip / ARGS.H < prev    next >
C/C++ Source or Header  |  1996-06-26  |  1KB  |  68 lines

  1. #include "crc.h"
  2. #include "ibitstr.h"
  3. #include "header.h"
  4. #include "subband.h"
  5.  
  6. #include <wtypes.h>
  7.  
  8. /* A abstract class to pass values to maplay. From the Win32 API, we can only
  9.     pass one 32-bit value to a thread. This will be a pointer to a object
  10.     of this class. The Args class contains the seeking control variables
  11.     needed for both MPEG and MCI files. */
  12.  
  13. class Args
  14. {
  15.     public:
  16.  
  17.     Args() {}
  18.     virtual ~Args() {}
  19.  
  20.     int desired_position;
  21.     BOOL position_change;
  22.     HWND hWnd;
  23.  
  24. };
  25.  
  26. // A class to contain arguments for maplay.
  27. class MPEG_Args : public Args
  28. {
  29. public:
  30.  
  31.     MPEG_Args()
  32.     {
  33.         stream=NULL;
  34.         crc=NULL;
  35.         MPEGheader=NULL;
  36.         hWnd=NULL;
  37.         phwo=NULL;
  38.         which_c=both;
  39.         desired_position=0;
  40.         position_change = FALSE;
  41.     }
  42.  
  43.     Ibitstream *stream;
  44.     Crc16 *crc;
  45.     Header *MPEGheader;
  46.     HWAVEOUT *phwo;
  47.     enum e_channels which_c;
  48.  
  49.     ~MPEG_Args() { }
  50. };
  51.  
  52. // A class to hold the arguments for MCI playing.
  53. class MCI_Args : public Args {
  54.  
  55. public:
  56.     MCI_Args()
  57.     {
  58.         hWnd = NULL;
  59.         desired_position = 0;
  60.         position_change = FALSE;
  61.         playing = FALSE;
  62.     }
  63.  
  64.     BOOL playing;
  65. };
  66.  
  67.  
  68.