home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / Maplay4 / _SETUP.1 / aix_obuffer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-08  |  1.7 KB  |  63 lines

  1. /* aix_obuffer.h
  2.  
  3.     Copied from obuffer_aix.h from maplay 1.3b */
  4.  
  5. /*
  6.  *  @(#) obuffer_aix.h 1.1, last edit: 13 Feb 1995 13:13:06
  7.  *  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  8.  *  @(#) Berlin University of Technology
  9.  *
  10.  *  AixObuffer class written by
  11.  *  Nick Cremelie (cremelie@ibmsp.elis.rug.ac.be)
  12.  *
  13.  *  This program is free software; you can redistribute it and/or modify
  14.  *  it under the terms of the GNU General Public License as published by
  15.  *  the Free Software Foundation; either version 2 of the License, or
  16.  *  (at your option) any later version.
  17.  *
  18.  *  This program is distributed in the hope that it will be useful,
  19.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  20.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21.  *  GNU General Public License for more details.
  22.  *
  23.  *  You should have received a copy of the GNU General Public License
  24.  *  along with this program; if not, write to the Free Software
  25.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  26.  */
  27.  
  28. #ifndef OBUFFER_AIX_H
  29. #define OBUFFER_AIX_H
  30.  
  31. #ifdef AIX
  32.  
  33. #include "all.h"
  34. #include "args.h"
  35.  
  36. class AixObuffer : public Obuffer
  37. {
  38.   int16  buffer[OBUFFERSIZE];
  39.   int16 *bufferp[MAXCHANNELS];
  40.   uint32 channels;
  41.   static int audio_fd;
  42.  
  43.   static int open_audio_device (void);
  44.  
  45. public:
  46.         AixObuffer (uint32 number_of_channels, MPEG_Args *mpeg_args);
  47.        ~AixObuffer (void);
  48.   void  append (uint32 channel, int16 value);
  49.   void  write_buffer (int dummy);
  50.  
  51. #ifdef SEEK_STOP
  52.   void AixObuffer::clear_buffer(void);
  53.  
  54.   void AixObuffer::set_stop_flag(void)
  55. #endif // SEEK_STOP
  56.  
  57.   static BOOL class_suitable (uint32 number_of_channels);
  58. };
  59.  
  60. #endif // AIX
  61.  
  62. #endif
  63.