home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2000 January / LCD_01_2000.iso / games / doom / sndserv / include / wadread.h < prev   
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.0 KB  |  63 lines

  1. /*  Emacs style mode select   -*- C++ -*-  */
  2. /* ----------------------------------------------------------------------------- */
  3. /*  */
  4. /*  $Id: wadread.h,v 1.3 1997/01/30 19:54:23 b1 Exp $ */
  5. /*  */
  6. /*  Copyright (C) 1993-1996 by id Software, Inc. */
  7. /*  */
  8. /*  This source is available for distribution and/or modification */
  9. /*  only under the terms of the DOOM Source Code License as */
  10. /*  published by id Software. All rights reserved. */
  11. /*  */
  12. /*  The source is distributed in the hope that it will be useful, */
  13. /*  but WITHOUT ANY WARRANTY; without even the implied warranty of */
  14. /*  FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License */
  15. /*  for more details. */
  16. /*  */
  17. /*  */
  18. /*  $Log: wadread.h,v $ */
  19. /*  Revision 1.3  1997/01/30 19:54:23  b1 */
  20. /*  Final reformatting run. All the remains (ST, W, WI, Z). */
  21. /*  */
  22. /*  Revision 1.2  1997/01/21 19:00:10  b1 */
  23. /*  First formatting run: */
  24. /*   using Emacs cc-mode.el indentation for C++ now. */
  25. /*  */
  26. /*  Revision 1.1  1997/01/19 17:22:52  b1 */
  27. /*  Initial check in DOOM sources as of Jan. 10th, 1997 */
  28. /*  */
  29. /*  */
  30. /*  DESCRIPTION: */
  31. /*     WAD and Lump I/O, the second. */
  32. /*     This time for soundserver only. */
  33. /*     Welcome to Department of Redundancy Department. */
  34. /*      (Yeah, I said that elsewhere already). */
  35. /*     Note: makes up for a nice w_wad.h. */
  36. /*  */
  37. /* ----------------------------------------------------------------------------- */
  38.  
  39. #ifndef __WADREAD_H__
  40. #define __WADREAD_H__
  41.  
  42. /*  */
  43. /*   Opens the wadfile specified. */
  44. /*  Must be called before any calls to  loadlump() or getsfx(). */
  45. /*  */
  46.  
  47. void openwad(char* wadname);
  48.  
  49. /*  */
  50. /*   Gets a sound effect from the wad file.  The pointer points to the */
  51. /*   start of the data.  Returns a 0 if the sfx was not */
  52. /*   found.  Sfx names should be no longer than 6 characters.  All data is */
  53. /*   rounded up in size to the nearest MIXBUFFERSIZE and is padded out with */
  54. /*   0x80's.  Returns the data length in len. */
  55. /*  */
  56.  
  57. void*
  58. getsfx
  59. ( char*        sfxname,
  60.   int*        len );
  61.  
  62. #endif
  63.