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, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *)
16 {$INCLUDE ../shared/a_modes.inc}
19 interface
23 type
24 // a WAV loader that just uses SDL_LoadWAV
27 public
34 private
40 public
46 implementation
50 (* TWAVLoaderFactory *)
53 var
55 begin
57 begin
59 exit;
62 Result := ((P+0)^ = Ord('R')) and ((P+1)^ = Ord('I')) and ((P+2)^ = Ord('F')) and ((P+3)^ = Ord('F'));
66 begin
67 // TODO: ehhh
72 begin
76 (* TWAVLoader *)
79 var
84 begin
90 begin
92 end
93 else
94 begin
108 var
113 begin
119 begin
121 exit;
125 begin
127 end
128 else
129 begin
143 begin
148 begin
152 begin
155 end
156 else
161 begin
167 begin
172 initialization