home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / MaplayP / _SETUP.1 / hpux_obuffer.h.old < prev    next >
Encoding:
Text File  |  1997-07-08  |  1.6 KB  |  64 lines

  1. /* hpux_obuffer.h
  2.  
  3.     HP-UX output buffer written by John Fehr (jfehr@themall.net)
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2 of the License, or
  8.    (at your option) any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  18.  
  19. #ifndef HPUX_OBUFFER_H
  20. #define HPUX_OBUFFER_H
  21.  
  22. #ifdef _HPUX_SOURCE
  23.  
  24. #include "obuffer.h"
  25.  
  26. #include <Alib.h>
  27. #include <sys/socket.h>
  28. #include <netinet/in.h>
  29. class HPUXObuffer : public Obuffer
  30. {
  31.   int16  buffer[OBUFFERSIZE];
  32.   int16 *bufferp[MAXCHANNELS];
  33.   uint32 channels;
  34.   Audio *audio;
  35.   AudioAttributes Attribs;
  36.   AFileFormat FileFormat;
  37.   SSPlayParams playParams;
  38.   AudioAttrMask AttribsMask;
  39.   ATransID xid;
  40.   int streamSocket;
  41.   SStream audioStream;
  42.   long status;
  43.   long pauseCount;
  44.   Bool audioPaused;
  45.   int len_written;
  46.  
  47.  
  48. public:
  49.     HPUXObuffer (uint32 number_of_channels);
  50.        ~HPUXObuffer (void);
  51.   void    append (uint32 channel, int32 value);
  52.   void    write_buffer (int dummy);
  53.  
  54. #ifdef SEEK_STOP
  55.   void   set_stop_flag(void);
  56.   void   clear_buffer(void);
  57. #endif
  58.  
  59.   static BOOL class_suitable (uint32 number_of_channels);
  60. };
  61. #endif // _HPUX_SOURCE
  62.  
  63. #endif
  64.