wadread.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #ifndef __WADREAD_H__
  39. #define __WADREAD_H__
  40. //
  41. // Opens the wadfile specified.
  42. // Must be called before any calls to loadlump() or getsfx().
  43. //
  44. void openwad(char* wadname);
  45. //
  46. // Gets a sound effect from the wad file. The pointer points to the
  47. // start of the data. Returns a 0 if the sfx was not
  48. // found. Sfx names should be no longer than 6 characters. All data is
  49. // rounded up in size to the nearest MIXBUFFERSIZE and is padded out with
  50. // 0x80's. Returns the data length in len.
  51. //
  52. void*
  53. getsfx
  54. ( char* sfxname,
  55. int* len );
  56. #endif