0ebe256b9d9d818245067079d9fe22c99a5e252c
1 (* Copyright (C) Doom 2D: Forever Developers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *)
15 {$INCLUDE ../shared/a_modes.inc}
18 interface
22 type
23 // a WAV loader that just uses SDL_LoadWAV
26 public
33 private
39 public
45 implementation
49 (* TWAVLoaderFactory *)
52 var
54 begin
56 begin
58 exit;
61 Result := ((P+0)^ = Ord('R')) and ((P+1)^ = Ord('I')) and ((P+2)^ = Ord('F')) and ((P+3)^ = Ord('F'));
65 begin
66 // TODO: ehhh
71 begin
75 (* TWAVLoader *)
78 var
83 begin
89 begin
91 end
92 else
93 begin
107 var
112 begin
118 begin
120 exit;
124 begin
126 end
127 else
128 begin
142 begin
147 begin
151 begin
154 end
155 else
160 begin
166 begin
171 initialization