port.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*____________________________________________________________________________
  2. FreeAmp - The Free MP3 Player
  3. MP3 Decoder originally Copyright (C) 1995-1997 Xing Technology
  4. Corp. http://www.xingtech.com
  5. Portions Copyright (C) 1998-1999 EMusic.com
  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. 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. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. $Id: port.h,v 1.2 1999/10/19 07:13:08 elrod Exp $
  18. ____________________________________________________________________________*/
  19. #ifndef O_BINARY
  20. #define O_BINARY 0
  21. #endif
  22. /*--- no kb function unless DOS ---*/
  23. #ifndef KB_OK
  24. #ifdef __MSDOS__
  25. #define KB_OK
  26. #endif
  27. #ifdef _CONSOLE
  28. #define KB_OK
  29. #endif
  30. #endif
  31. /*-- no pcm conversion to wave required
  32. if short = 16 bits and little endian ---*/
  33. /* mods 1/9/97 LITTLE_SHORT16 detect */
  34. #ifndef LITTLE_SHORT16
  35. #ifdef __MSDOS__
  36. #undef LITTLE_SHORT16
  37. #define LITTLE_SHORT16
  38. #endif
  39. #ifdef WIN32
  40. #undef LITTLE_SHORT16
  41. #define LITTLE_SHORT16
  42. #endif
  43. #ifdef _M_IX86
  44. #undef LITTLE_SHORT16
  45. #define LITTLE_SHORT16
  46. #endif
  47. #endif
  48. // JDW //
  49. //#ifdef LITTLE_SHORT16
  50. //#define cvt_to_wave_init(a)
  51. //#define cvt_to_wave(a, b) b
  52. //#else
  53. //void cvt_to_wave_init(int bits);
  54. //unsigned int cvt_to_wave(void *a, unsigned int b);
  55. //
  56. //#endif
  57. #ifdef LITTLE_SHORT16
  58. #define cvt_to_wave_init(a)
  59. #define cvt_to_wave(a, b) b
  60. #else
  61. void cvt_to_wave_init(int);
  62. unsigned int cvt_to_wave(unsigned char *,unsigned int);
  63. #endif