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