home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / MaplayP / _SETUP.1 / all.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-02  |  2.2 KB  |  79 lines

  1. /*  all.h
  2.  
  3.      Data types used throughout the maplay code. */
  4.  
  5. /*
  6.  *  @(#) all.h 1.6, last edit: 6/17/94 15:40:44
  7.  *  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  8.  *  @(#) Berlin University of Technology
  9.  *
  10.  *  This program is free software; you can redistribute it and/or modify
  11.  *  it under the terms of the GNU General Public License as published by
  12.  *  the Free Software Foundation; either version 2 of the License, or
  13.  *  (at your option) any later version.
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  */
  24.  
  25. #ifndef ALL_H
  26. #define ALL_H
  27.  
  28. #ifdef __WIN32__
  29. #include <wtypes.h>
  30. #endif
  31.  
  32. // real number
  33. typedef float real;        // float should be enough
  34.  
  35. // Signed & unsigned integers, define SIXTEEN_BIT_COMPILER if the
  36. // default integer size is 16 bits
  37.  
  38. #ifdef SIXTEEN_BIT_COMPILER
  39. typedef long int32;                            // 32 Bit signed integer
  40. typedef unsigned long  uint32;         // 32 Bit unsigned integer
  41. typedef int int16;                       // 16 Bit signed integer
  42. typedef unsigned int    uint16;              // 16 Bit unsigned integer
  43. #else
  44. typedef int int32;                            // 32 Bit signed integer
  45. typedef unsigned uint32;               // 32 Bit unsigned integer
  46. typedef   signed short  int16;          // 16 Bit signed integer
  47. typedef unsigned short uint16;          // 16 Bit unsigned integer
  48. #endif // SIXTEEN_BIT_COMPILER
  49.  
  50. #ifdef ULAW
  51. typedef unsigned char    ulawsample;    // u-law byte
  52. #endif // ULAW
  53.  
  54. // mutex type (only for user seekable or stoppable streams)
  55. #ifdef SEEK_STOP
  56.  
  57. #ifdef __WIN32__
  58. typedef HANDLE _Mutex;
  59. #else
  60. #ifdef BEOS
  61. typedef BLocker * _Mutex;
  62. #endif // BEOS
  63. #endif // __WIN32__
  64.  
  65. #endif // SEEK_STOP
  66.  
  67. #ifdef NObool
  68. typedef char bool;
  69. #endif // NObool
  70.  
  71. #ifndef TRUE
  72. #define TRUE  1
  73. #define FALSE 0
  74. #endif // !TRUE
  75.  
  76. enum e_channels { both, left, right, downmix };
  77.  
  78. #endif // ALL_H
  79.