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

  1. /*
  2.  *  @(#) subband.h 1.6, last edit: 6/15/94 16:55:36
  3.  *  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  4.  *  @(#) Berlin University of Technology
  5.  *
  6.  *  This program is free software; you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation; either version 2 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  This program is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with this program; if not, write to the Free Software
  18.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21. #ifndef SUBBAND_H
  22. #define SUBBAND_H
  23.  
  24. #include "all.h"
  25. #include "ibitstr.h"
  26. #include "header.h"
  27. #include "synfilt.h"
  28. #include "crc.h"
  29.  
  30. enum e_channels { both, left, right };
  31.  
  32. // abstract base class for subband classes of layer I and II:
  33. class Subband
  34. {
  35. public:
  36.   virtual void read_allocation (Ibitstream *, Header *, Crc16 *) = 0;
  37.   virtual void read_scalefactor (Ibitstream *, Header *) = 0;
  38.   virtual BOOL read_sampledata (Ibitstream *) = 0;
  39.   virtual BOOL put_next_sample (e_channels, SynthesisFilter *, SynthesisFilter *) = 0;
  40. };
  41.  
  42. #endif
  43.