b5b838d4ba224da50e1301ec8db02cfedea0a6e2
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
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