summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/structs.h
blob: 05a2b5228072e80fdac8edef2482e04c7cba8e96 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
/*
** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**
** Any non-GPL usage of this software or parts of this software is strictly
** forbidden.
**
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
**
** $Id$
**/

#ifndef __STRUCTS_H__
#define __STRUCTS_H__

#ifdef __cplusplus
extern "C" {
#endif

//#include "cfft.h"
#ifdef SBR_DEC
#include "sbr_dec.h"
#endif

#define MAX_CHANNELS        64
#define MAX_SYNTAX_ELEMENTS 48
#define MAX_WINDOW_GROUPS    8
#define MAX_SFB             51
#define MAX_LTP_SFB         40
#define MAX_LTP_SFB_S        8

/* used to save the prediction state */
typedef struct {
    int16_t r[2];
    int16_t COR[2];
    int16_t VAR[2];
} pred_state;

typedef struct {
    uint16_t N;
    //cfft_info *cfft;
    complex_t *sincos;
#ifdef PROFILE
    int64_t cycles;
    int64_t fft_cycles;
#endif
} mdct_info;

typedef struct
{
    const real_t *long_window[2];
    const real_t *short_window[2];
#ifdef LD_DEC
    const real_t *ld_window[2];
#endif

    mdct_info *mdct256;
#ifdef LD_DEC
    mdct_info *mdct1024;
#endif
    mdct_info *mdct2048;
#ifdef PROFILE
    int64_t cycles;
#endif
} fb_info;

typedef struct
{
    uint8_t present;

    uint8_t num_bands;
    uint8_t pce_instance_tag;
    uint8_t excluded_chns_present;
    uint8_t band_top[17];
    uint8_t prog_ref_level;
    uint8_t dyn_rng_sgn[17];
    uint8_t dyn_rng_ctl[17];
    uint8_t exclude_mask[MAX_CHANNELS];
    uint8_t additional_excluded_chns[MAX_CHANNELS];

    real_t ctrl1;
    real_t ctrl2;
} drc_info;

typedef struct
{
    uint8_t element_instance_tag;
    uint8_t object_type;
    uint8_t sf_index;
    uint8_t num_front_channel_elements;
    uint8_t num_side_channel_elements;
    uint8_t num_back_channel_elements;
    uint8_t num_lfe_channel_elements;
    uint8_t num_assoc_data_elements;
    uint8_t num_valid_cc_elements;
    uint8_t mono_mixdown_present;
    uint8_t mono_mixdown_element_number;
    uint8_t stereo_mixdown_present;
    uint8_t stereo_mixdown_element_number;
    uint8_t matrix_mixdown_idx_present;
    uint8_t pseudo_surround_enable;
    uint8_t matrix_mixdown_idx;
    uint8_t front_element_is_cpe[16];
    uint8_t front_element_tag_select[16];
    uint8_t side_element_is_cpe[16];
    uint8_t side_element_tag_select[16];
    uint8_t back_element_is_cpe[16];
    uint8_t back_element_tag_select[16];
    uint8_t lfe_element_tag_select[16];
    uint8_t assoc_data_element_tag_select[16];
    uint8_t cc_element_is_ind_sw[16];
    uint8_t valid_cc_element_tag_select[16];

    uint8_t channels;

    uint8_t comment_field_bytes;
    uint8_t comment_field_data[257];

    /* extra added values */
    uint8_t num_front_channels;
    uint8_t num_side_channels;
    uint8_t num_back_channels;
    uint8_t num_lfe_channels;
    uint8_t sce_channel[16];
    uint8_t cpe_channel[16];
} program_config;

typedef struct
{
    uint16_t syncword;
    uint8_t id;
    uint8_t layer;
    uint8_t protection_absent;
    uint8_t profile;
    uint8_t sf_index;
    uint8_t private_bit;
    uint8_t channel_configuration;
    uint8_t original;
    uint8_t home;
    uint8_t emphasis;
    uint8_t copyright_identification_bit;
    uint8_t copyright_identification_start;
    uint16_t aac_frame_length;
    uint16_t adts_buffer_fullness;
    uint8_t no_raw_data_blocks_in_frame;
    uint16_t crc_check;

    /* control param */
    uint8_t old_format;
} adts_header;

typedef struct
{
    uint8_t copyright_id_present;
    int8_t copyright_id[10];
    uint8_t original_copy;
    uint8_t home;
    uint8_t bitstream_type;
    uint32_t bitrate;
    uint8_t num_program_config_elements;
    uint32_t adif_buffer_fullness;

    /* maximum of 16 PCEs */
    program_config pce[16];
} adif_header;

#ifdef LTP_DEC
typedef struct
{
    uint8_t last_band;
    uint8_t data_present;
    uint16_t lag;
    uint8_t lag_update;
    uint8_t coef;
    uint8_t long_used[MAX_SFB];
    uint8_t short_used[8];
    uint8_t short_lag_present[8];
    uint8_t short_lag[8];
} ltp_info;
#endif

#ifdef MAIN_DEC
typedef struct
{
    uint8_t limit;
    uint8_t predictor_reset;
    uint8_t predictor_reset_group_number;
    uint8_t prediction_used[MAX_SFB];
} pred_info;
#endif

typedef struct
{
    uint8_t number_pulse;
    uint8_t pulse_start_sfb;
    uint8_t pulse_offset[4];
    uint8_t pulse_amp[4];
} pulse_info;

typedef struct
{
    uint8_t n_filt[8];
    uint8_t coef_res[8];
    uint8_t length[8][4];
    uint8_t order[8][4];
    uint8_t direction[8][4];
    uint8_t coef_compress[8][4];
    uint8_t coef[8][4][32];
} tns_info;

#ifdef SSR_DEC
typedef struct
{
    uint8_t max_band;

    uint8_t adjust_num[4][8];
    uint8_t alevcode[4][8][8];
    uint8_t aloccode[4][8][8];
} ssr_info;
#endif

typedef struct
{
    uint8_t max_sfb;

    uint8_t num_swb;
    uint8_t num_window_groups;
    uint8_t num_windows;
    uint8_t window_sequence;
    uint8_t window_group_length[8];
    uint8_t window_shape;
    uint8_t scale_factor_grouping;
    uint16_t sect_sfb_offset[8][15*8];
    uint16_t swb_offset[52];

    uint8_t sect_cb[8][15*8];
    uint16_t sect_start[8][15*8];
    uint16_t sect_end[8][15*8];
    uint8_t sfb_cb[8][8*15];
    uint8_t num_sec[8]; /* number of sections in a group */

    uint8_t global_gain;
    int16_t scale_factors[8][51]; /* [0..255] */

    uint8_t ms_mask_present;
    uint8_t ms_used[MAX_WINDOW_GROUPS][MAX_SFB];

    uint8_t noise_used;

    uint8_t pulse_data_present;
    uint8_t tns_data_present;
    uint8_t gain_control_data_present;
    uint8_t predictor_data_present;

    pulse_info pul;
    tns_info tns;
#ifdef MAIN_DEC
    pred_info pred;
#endif
#ifdef LTP_DEC
    ltp_info ltp;
    ltp_info ltp2;
#endif
#ifdef SSR_DEC
    ssr_info ssr;
#endif

#ifdef ERROR_RESILIENCE
    /* ER HCR data */
    uint16_t length_of_reordered_spectral_data;
    uint8_t length_of_longest_codeword;
    /* ER RLVC data */
    uint8_t sf_concealment;
    uint8_t rev_global_gain;
    uint16_t length_of_rvlc_sf;
    uint16_t dpcm_noise_nrg;
    uint8_t sf_escapes_present;
    uint8_t length_of_rvlc_escapes;
    uint16_t dpcm_noise_last_position;
#endif
} ic_stream; /* individual channel stream */

typedef struct
{
    uint8_t channel;
    int16_t paired_channel;

    uint8_t element_instance_tag;
    uint8_t common_window;

    ic_stream ics1;
    ic_stream ics2;
} element; /* syntax element (SCE, CPE, LFE) */

typedef struct mp4AudioSpecificConfig
{
    /* Audio Specific Info */
    /*uint8_t*/ unsigned char objectTypeIndex;
    /*uint8_t*/ unsigned char samplingFrequencyIndex;
    /*uint32_t*/ unsigned long samplingFrequency;
    /*uint8_t*/ unsigned char channelsConfiguration;

    /* GA Specific Info */
    /*uint8_t*/ unsigned char frameLengthFlag;
    /*uint8_t*/ unsigned char dependsOnCoreCoder;
    /*uint16_t*/ unsigned short coreCoderDelay;
    /*uint8_t*/ unsigned char extensionFlag;
    /*uint8_t*/ unsigned char aacSectionDataResilienceFlag;
    /*uint8_t*/ unsigned char aacScalefactorDataResilienceFlag;
    /*uint8_t*/ unsigned char aacSpectralDataResilienceFlag;
    /*uint8_t*/ unsigned char epConfig;

    /*uint8_t*/ signed char sbr_present_flag;
    /*uint8_t*/ char forceUpSampling;
    /*uint8_t*/ char downSampledSBR;
} mp4AudioSpecificConfig;

typedef struct NeAACDecConfiguration
{
    /*uint8_t*/ unsigned char defObjectType;
    /*uint32_t*/ unsigned long defSampleRate;
    /*uint8_t*/ unsigned char outputFormat;
    /*uint8_t*/ unsigned char downMatrix;
    /*uint8_t*/ unsigned char useOldADTSFormat;
    /*uint8_t*/ unsigned char dontUpSampleImplicitSBR;
} NeAACDecConfiguration, *NeAACDecConfigurationPtr;

typedef struct NeAACDecFrameInfo
{
    /*uint32_t*/ unsigned long bytesconsumed;
    /*uint32_t*/ unsigned long samples;
    /*uint8_t*/ unsigned char channels;
    /*uint8_t*/ unsigned char error;
    /*uint32_t*/ unsigned long samplerate;

    /* SBR: 0: off, 1: on; normal, 2: on; downsampled */
    /*uint8_t*/ unsigned char sbr;

    /* MPEG-4 ObjectType */
    /*uint8_t*/ unsigned char object_type;

    /* AAC header type; MP4 will be signalled as RAW also */
    /*uint8_t*/ unsigned char header_type;

    /* multichannel configuration */
    /*uint8_t*/ unsigned char num_front_channels;
    /*uint8_t*/ unsigned char num_side_channels;
    /*uint8_t*/ unsigned char num_back_channels;
    /*uint8_t*/ unsigned char num_lfe_channels;
    /*uint8_t*/ unsigned char channel_position[MAX_CHANNELS];

    /* PS: 0: off, 1: on */
    /*uint8_t*/ unsigned char ps;
} NeAACDecFrameInfo;

typedef struct
{
    uint8_t adts_header_present;
    uint8_t adif_header_present;
    uint8_t sf_index;
    uint8_t object_type;
    uint8_t channelConfiguration;
#ifdef ERROR_RESILIENCE
    uint8_t aacSectionDataResilienceFlag;
    uint8_t aacScalefactorDataResilienceFlag;
    uint8_t aacSpectralDataResilienceFlag;
#endif
    uint16_t frameLength;
    uint8_t postSeekResetFlag;

    uint32_t frame;

    uint8_t downMatrix;
    uint8_t upMatrix;
    uint8_t first_syn_ele;
    uint8_t has_lfe;
    /* number of channels in current frame */
    uint8_t fr_channels;
    /* number of elements in current frame */
    uint8_t fr_ch_ele;

    /* element_output_channels:
       determines the number of channels the element will output
    */
    uint8_t element_output_channels[MAX_SYNTAX_ELEMENTS];
    /* element_alloced:
       determines whether the data needed for the element is allocated or not
    */
    uint8_t element_alloced[MAX_SYNTAX_ELEMENTS];
    /* alloced_channels:
       determines the number of channels where output data is allocated for
    */
    uint8_t alloced_channels;

    /* output data buffer */
    void *sample_buffer;

    uint8_t window_shape_prev[MAX_CHANNELS];
#ifdef LTP_DEC
    uint16_t ltp_lag[MAX_CHANNELS];
#endif
    fb_info *fb;
    drc_info *drc;

    real_t *time_out[MAX_CHANNELS];
    real_t *fb_intermed[MAX_CHANNELS];

#ifdef SBR_DEC
    int8_t sbr_present_flag;
    int8_t forceUpSampling;
    int8_t downSampledSBR;
    /* determines whether SBR data is allocated for the gives element */
    uint8_t sbr_alloced[MAX_SYNTAX_ELEMENTS];

    sbr_info *sbr[MAX_SYNTAX_ELEMENTS];
#endif
#if (defined(PS_DEC) || defined(DRM_PS))
    uint8_t ps_used[MAX_SYNTAX_ELEMENTS];
    uint8_t ps_used_global;
#endif

#ifdef SSR_DEC
    real_t *ssr_overlap[MAX_CHANNELS];
    real_t *prev_fmd[MAX_CHANNELS];
    real_t ipqf_buffer[MAX_CHANNELS][4][96/4];
#endif

#ifdef MAIN_DEC
    pred_state *pred_stat[MAX_CHANNELS];
#endif
#ifdef LTP_DEC
    int16_t *lt_pred_stat[MAX_CHANNELS];
#endif

    /* Program Config Element */
    uint8_t pce_set;
    program_config pce;
    uint8_t element_id[MAX_CHANNELS];
    uint8_t internal_channel[MAX_CHANNELS];

    /* Configuration data */
    NeAACDecConfiguration config;

#ifdef PROFILE
    int64_t cycles;
    int64_t spectral_cycles;
    int64_t output_cycles;
    int64_t scalefac_cycles;
    int64_t requant_cycles;
#endif
} NeAACDecStruct, *NeAACDecHandle;



#ifdef __cplusplus
}
#endif
#endif
d up a yellow keycard." extern const char *s_GOTYELWCARD; // = GOTYELWCARD; //#define GOTREDCARD "Picked up a red keycard." extern const char *s_GOTREDCARD; // = GOTREDCARD; //#define GOTBLUESKUL "Picked up a blue skull key." extern const char *s_GOTBLUESKUL; // = GOTBLUESKUL; //#define GOTYELWSKUL "Picked up a yellow skull key." extern const char *s_GOTYELWSKUL; // = GOTYELWSKUL; //#define GOTREDSKULL "Picked up a red skull key." extern const char *s_GOTREDSKULL; // = GOTREDSKULL; //#define GOTINVUL "Invulnerability!" extern const char *s_GOTINVUL; // = GOTINVUL; //#define GOTBERSERK "Berserk!" extern const char *s_GOTBERSERK; // = GOTBERSERK; //#define GOTINVIS "Partial Invisibility" extern const char *s_GOTINVIS; // = GOTINVIS; //#define GOTSUIT "Radiation Shielding Suit" extern const char *s_GOTSUIT; // = GOTSUIT; //#define GOTMAP "Computer Area Map" extern const char *s_GOTMAP; // = GOTMAP; //#define GOTVISOR "Light Amplification Visor" extern const char *s_GOTVISOR; // = GOTVISOR; //#define GOTMSPHERE "MegaSphere!" extern const char *s_GOTMSPHERE; // = GOTMSPHERE; //#define GOTCLIP "Picked up a clip." extern const char *s_GOTCLIP; // = GOTCLIP; //#define GOTCLIPBOX "Picked up a box of bullets." extern const char *s_GOTCLIPBOX; // = GOTCLIPBOX; //#define GOTROCKET "Picked up a rocket." extern const char *s_GOTROCKET; // = GOTROCKET; //#define GOTROCKBOX "Picked up a box of rockets." extern const char *s_GOTROCKBOX; // = GOTROCKBOX; //#define GOTCELL "Picked up an energy cell." extern const char *s_GOTCELL; // = GOTCELL; //#define GOTCELLBOX "Picked up an energy cell pack." extern const char *s_GOTCELLBOX; // = GOTCELLBOX; //#define GOTSHELLS "Picked up 4 shotgun shells." extern const char *s_GOTSHELLS; // = GOTSHELLS; //#define GOTSHELLBOX "Picked up a box of shotgun shells." extern const char *s_GOTSHELLBOX; // = GOTSHELLBOX; //#define GOTBACKPACK "Picked up a backpack full of ammo!" extern const char *s_GOTBACKPACK; // = GOTBACKPACK; //#define GOTBFG9000 "You got the BFG9000! Oh, yes." extern const char *s_GOTBFG9000; // = GOTBFG9000; //#define GOTCHAINGUN "You got the chaingun!" extern const char *s_GOTCHAINGUN; // = GOTCHAINGUN; //#define GOTCHAINSAW "A chainsaw! Find some meat!" extern const char *s_GOTCHAINSAW; // = GOTCHAINSAW; //#define GOTLAUNCHER "You got the rocket launcher!" extern const char *s_GOTLAUNCHER; // = GOTLAUNCHER; //#define GOTPLASMA "You got the plasma gun!" extern const char *s_GOTPLASMA; // = GOTPLASMA; //#define GOTSHOTGUN "You got the shotgun!" extern const char *s_GOTSHOTGUN; // = GOTSHOTGUN; //#define GOTSHOTGUN2 "You got the super shotgun!" extern const char *s_GOTSHOTGUN2; // = GOTSHOTGUN2; // // P_Doors.C // //#define PD_BLUEO "You need a blue key to activate this object" extern const char *s_PD_BLUEO; // = PD_BLUEO; //#define PD_REDO "You need a red key to activate this object" extern const char *s_PD_REDO; // = PD_REDO; //#define PD_YELLOWO "You need a yellow key to activate this object" extern const char *s_PD_YELLOWO; // = PD_YELLOWO; //#define PD_BLUEK "You need a blue key to open this door" extern const char *s_PD_BLUEK; // = PD_BLUEK; //#define PD_REDK "You need a red key to open this door" extern const char *s_PD_REDK; // = PD_REDK; //#define PD_YELLOWK "You need a yellow key to open this door" extern const char *s_PD_YELLOWK; // = PD_YELLOWK; //jff 02/05/98 Create messages specific to card and skull keys //#define PD_BLUEC "You need a blue card to open this door" extern const char *s_PD_BLUEC; // = PD_BLUEC; //#define PD_REDC "You need a red card to open this door" extern const char *s_PD_REDC; // = PD_REDC; //#define PD_YELLOWC "You need a yellow card to open this door" extern const char *s_PD_YELLOWC; // = PD_YELLOWC; //#define PD_BLUES "You need a blue skull to open this door" extern const char *s_PD_BLUES; // = PD_BLUES; //#define PD_REDS "You need a red skull to open this door" extern const char *s_PD_REDS; // = PD_REDS; //#define PD_YELLOWS "You need a yellow skull to open this door" extern const char *s_PD_YELLOWS; // = PD_YELLOWS; //#define PD_ANY "Any key will open this door" extern const char *s_PD_ANY; // = PD_ANY; //#define PD_ALL3 "You need all three keys to open this door" extern const char *s_PD_ALL3; // = PD_ALL3; //#define PD_ALL6 "You need all six keys to open this door" extern const char *s_PD_ALL6; // = PD_ALL6; // // G_game.C // //#define GGSAVED "game saved." extern const char *s_GGSAVED; // = GGSAVED; // // HU_stuff.C // //#define HUSTR_MSGU "[Message unsent]" extern const char *s_HUSTR_MSGU; // = HUSTR_MSGU; //#define HUSTR_E1M1 "E1M1: Hangar" extern const char *s_HUSTR_E1M1; // = HUSTR_E1M1; //#define HUSTR_E1M2 "E1M2: Nuclear Plant" extern const char *s_HUSTR_E1M2; // = HUSTR_E1M2; //#define HUSTR_E1M3 "E1M3: Toxin Refinery" extern const char *s_HUSTR_E1M3; // = HUSTR_E1M3; //#define HUSTR_E1M4 "E1M4: Command Control" extern const char *s_HUSTR_E1M4; // = HUSTR_E1M4; //#define HUSTR_E1M5 "E1M5: Phobos Lab" extern const char *s_HUSTR_E1M5; // = HUSTR_E1M5; //#define HUSTR_E1M6 "E1M6: Central Processing" extern const char *s_HUSTR_E1M6; // = HUSTR_E1M6; //#define HUSTR_E1M7 "E1M7: Computer Station" extern const char *s_HUSTR_E1M7; // = HUSTR_E1M7; //#define HUSTR_E1M8 "E1M8: Phobos Anomaly" extern const char *s_HUSTR_E1M8; // = HUSTR_E1M8; //#define HUSTR_E1M9 "E1M9: Military Base" extern const char *s_HUSTR_E1M9; // = HUSTR_E1M9; //#define HUSTR_E2M1 "E2M1: Deimos Anomaly" extern const char *s_HUSTR_E2M1; // = HUSTR_E2M1; //#define HUSTR_E2M2 "E2M2: Containment Area" extern const char *s_HUSTR_E2M2; // = HUSTR_E2M2; //#define HUSTR_E2M3 "E2M3: Refinery" extern const char *s_HUSTR_E2M3; // = HUSTR_E2M3; //#define HUSTR_E2M4 "E2M4: Deimos Lab" extern const char *s_HUSTR_E2M4; // = HUSTR_E2M4; //#define HUSTR_E2M5 "E2M5: Command Center" extern const char *s_HUSTR_E2M5; // = HUSTR_E2M5; //#define HUSTR_E2M6 "E2M6: Halls of the Damned" extern const char *s_HUSTR_E2M6; // = HUSTR_E2M6; //#define HUSTR_E2M7 "E2M7: Spawning Vats" extern const char *s_HUSTR_E2M7; // = HUSTR_E2M7; //#define HUSTR_E2M8 "E2M8: Tower of Babel" extern const char *s_HUSTR_E2M8; // = HUSTR_E2M8; //#define HUSTR_E2M9 "E2M9: Fortress of Mystery" extern const char *s_HUSTR_E2M9; // = HUSTR_E2M9; //#define HUSTR_E3M1 "E3M1: Hell Keep" extern const char *s_HUSTR_E3M1; // = HUSTR_E3M1; //#define HUSTR_E3M2 "E3M2: Slough of Despair" extern const char *s_HUSTR_E3M2; // = HUSTR_E3M2; //#define HUSTR_E3M3 "E3M3: Pandemonium" extern const char *s_HUSTR_E3M3; // = HUSTR_E3M3; //#define HUSTR_E3M4 "E3M4: House of Pain" extern const char *s_HUSTR_E3M4; // = HUSTR_E3M4; //#define HUSTR_E3M5 "E3M5: Unholy Cathedral" extern const char *s_HUSTR_E3M5; // = HUSTR_E3M5; //#define HUSTR_E3M6 "E3M6: Mt. Erebus" extern const char *s_HUSTR_E3M6; // = HUSTR_E3M6; //#define HUSTR_E3M7 "E3M7: Limbo" extern const char *s_HUSTR_E3M7; // = HUSTR_E3M7; //#define HUSTR_E3M8 "E3M8: Dis" extern const char *s_HUSTR_E3M8; // = HUSTR_E3M8; //#define HUSTR_E3M9 "E3M9: Warrens" extern const char *s_HUSTR_E3M9; // = HUSTR_E3M9; //#define HUSTR_E4M1 "E4M1: Hell Beneath" extern const char *s_HUSTR_E4M1; // = HUSTR_E4M1; //#define HUSTR_E4M2 "E4M2: Perfect Hatred" extern const char *s_HUSTR_E4M2; // = HUSTR_E4M2; //#define HUSTR_E4M3 "E4M3: Sever The Wicked" extern const char *s_HUSTR_E4M3; // = HUSTR_E4M3; //#define HUSTR_E4M4 "E4M4: Unruly Evil" extern const char *s_HUSTR_E4M4; // = HUSTR_E4M4; //#define HUSTR_E4M5 "E4M5: They Will Repent" extern const char *s_HUSTR_E4M5; // = HUSTR_E4M5; //#define HUSTR_E4M6 "E4M6: Against Thee Wickedly" extern const char *s_HUSTR_E4M6; // = HUSTR_E4M6; //#define HUSTR_E4M7 "E4M7: And Hell Followed" extern const char *s_HUSTR_E4M7; // = HUSTR_E4M7; //#define HUSTR_E4M8 "E4M8: Unto The Cruel" extern const char *s_HUSTR_E4M8; // = HUSTR_E4M8; //#define HUSTR_E4M9 "E4M9: Fear" extern const char *s_HUSTR_E4M9; // = HUSTR_E4M9; //#define HUSTR_1 "level 1: entryway" extern const char *s_HUSTR_1; // = HUSTR_1; //#define HUSTR_2 "level 2: underhalls" extern const char *s_HUSTR_2; // = HUSTR_2; //#define HUSTR_3 "level 3: the gantlet" extern const char *s_HUSTR_3; // = HUSTR_3; //#define HUSTR_4 "level 4: the focus" extern const char *s_HUSTR_4; // = HUSTR_4; //#define HUSTR_5 "level 5: the waste tunnels" extern const char *s_HUSTR_5; // = HUSTR_5; //#define HUSTR_6 "level 6: the crusher" extern const char *s_HUSTR_6; // = HUSTR_6; //#define HUSTR_7 "level 7: dead simple" extern const char *s_HUSTR_7; // = HUSTR_7; //#define HUSTR_8 "level 8: tricks and traps" extern const char *s_HUSTR_8; // = HUSTR_8; //#define HUSTR_9 "level 9: the pit" extern const char *s_HUSTR_9; // = HUSTR_9; //#define HUSTR_10 "level 10: refueling base" extern const char *s_HUSTR_10; // = HUSTR_10; //#define HUSTR_11 "level 11: 'o' of destruction!" extern const char *s_HUSTR_11; // = HUSTR_11; //#define HUSTR_12 "level 12: the factory" extern const char *s_HUSTR_12; // = HUSTR_12; //#define HUSTR_13 "level 13: downtown" extern const char *s_HUSTR_13; // = HUSTR_13; //#define HUSTR_14 "level 14: the inmost dens" extern const char *s_HUSTR_14; // = HUSTR_14; //#define HUSTR_15 "level 15: industrial zone" extern const char *s_HUSTR_15; // = HUSTR_15; //#define HUSTR_16 "level 16: suburbs" extern const char *s_HUSTR_16; // = HUSTR_16; //#define HUSTR_17 "level 17: tenements" extern const char *s_HUSTR_17; // = HUSTR_17; //#define HUSTR_18 "level 18: the courtyard" extern const char *s_HUSTR_18; // = HUSTR_18; //#define HUSTR_19 "level 19: the citadel" extern const char *s_HUSTR_19; // = HUSTR_19; //#define HUSTR_20 "level 20: gotcha!" extern const char *s_HUSTR_20; // = HUSTR_20; //#define HUSTR_21 "level 21: nirvana" extern const char *s_HUSTR_21; // = HUSTR_21; //#define HUSTR_22 "level 22: the catacombs" extern const char *s_HUSTR_22; // = HUSTR_22; //#define HUSTR_23 "level 23: barrels o' fun" extern const char *s_HUSTR_23; // = HUSTR_23; //#define HUSTR_24 "level 24: the chasm" extern const char *s_HUSTR_24; // = HUSTR_24; //#define HUSTR_25 "level 25: bloodfalls" extern const char *s_HUSTR_25; // = HUSTR_25; //#define HUSTR_26 "level 26: the abandoned mines" extern const char *s_HUSTR_26; // = HUSTR_26; //#define HUSTR_27 "level 27: monster condo" extern const char *s_HUSTR_27; // = HUSTR_27; //#define HUSTR_28 "level 28: the spirit world" extern const char *s_HUSTR_28; // = HUSTR_28; //#define HUSTR_29 "level 29: the living end" extern const char *s_HUSTR_29; // = HUSTR_29; //#define HUSTR_30 "level 30: icon of sin" extern const char *s_HUSTR_30; // = HUSTR_30; //#define HUSTR_31 "level 31: wolfenstein" extern const char *s_HUSTR_31; // = HUSTR_31; //#define HUSTR_32 "level 32: grosse" extern const char *s_HUSTR_32; // = HUSTR_32; //#define PHUSTR_1 "level 1: congo" extern const char *s_PHUSTR_1; // = PHUSTR_1; //#define PHUSTR_2 "level 2: well of souls" extern const char *s_PHUSTR_2; // = PHUSTR_2; //#define PHUSTR_3 "level 3: aztec" extern const char *s_PHUSTR_3; // = PHUSTR_3; //#define PHUSTR_4 "level 4: caged" extern const char *s_PHUSTR_4; // = PHUSTR_4; //#define PHUSTR_5 "level 5: ghost town" extern const char *s_PHUSTR_5; // = PHUSTR_5; //#define PHUSTR_6 "level 6: baron's lair" extern const char *s_PHUSTR_6; // = PHUSTR_6; //#define PHUSTR_7 "level 7: caughtyard" extern const char *s_PHUSTR_7; // = PHUSTR_7; //#define PHUSTR_8 "level 8: realm" extern const char *s_PHUSTR_8; // = PHUSTR_8; //#define PHUSTR_9 "level 9: abattoire" extern const char *s_PHUSTR_9; // = PHUSTR_9; //#define PHUSTR_10 "level 10: onslaught" extern const char *s_PHUSTR_10; // = PHUSTR_10; //#define PHUSTR_11 "level 11: hunted" extern const char *s_PHUSTR_11; // = PHUSTR_11; //#define PHUSTR_12 "level 12: speed" extern const char *s_PHUSTR_12; // = PHUSTR_12; //#define PHUSTR_13 "level 13: the crypt" extern const char *s_PHUSTR_13; // = PHUSTR_13; //#define PHUSTR_14 "level 14: genesis" extern const char *s_PHUSTR_14; // = PHUSTR_14; //#define PHUSTR_15 "level 15: the twilight" extern const char *s_PHUSTR_15; // = PHUSTR_15; //#define PHUSTR_16 "level 16: the omen" extern const char *s_PHUSTR_16; // = PHUSTR_16; //#define PHUSTR_17 "level 17: compound" extern const char *s_PHUSTR_17; // = PHUSTR_17; //#define PHUSTR_18 "level 18: neurosphere" extern const char *s_PHUSTR_18; // = PHUSTR_18; //#define PHUSTR_19 "level 19: nme" extern const char *s_PHUSTR_19; // = PHUSTR_19; //#define PHUSTR_20 "level 20: the death domain" extern const char *s_PHUSTR_20; // = PHUSTR_20; //#define PHUSTR_21 "level 21: slayer" extern const char *s_PHUSTR_21; // = PHUSTR_21; //#define PHUSTR_22 "level 22: impossible mission" extern const char *s_PHUSTR_22; // = PHUSTR_22; //#define PHUSTR_23 "level 23: tombstone" extern const char *s_PHUSTR_23; // = PHUSTR_23; //#define PHUSTR_24 "level 24: the final frontier" extern const char *s_PHUSTR_24; // = PHUSTR_24; //#define PHUSTR_25 "level 25: the temple of darkness" extern const char *s_PHUSTR_25; // = PHUSTR_25; //#define PHUSTR_26 "level 26: bunker" extern const char *s_PHUSTR_26; // = PHUSTR_26; //#define PHUSTR_27 "level 27: anti-christ" extern const char *s_PHUSTR_27; // = PHUSTR_27; //#define PHUSTR_28 "level 28: the sewers" extern const char *s_PHUSTR_28; // = PHUSTR_28; //#define PHUSTR_29 "level 29: odyssey of noises" extern const char *s_PHUSTR_29; // = PHUSTR_29; //#define PHUSTR_30 "level 30: the gateway of hell" extern const char *s_PHUSTR_30; // = PHUSTR_30; //#define PHUSTR_31 "level 31: cyberden" extern const char *s_PHUSTR_31; // = PHUSTR_31; //#define PHUSTR_32 "level 32: go 2 it" extern const char *s_PHUSTR_32; // = PHUSTR_32; //#define THUSTR_1 "level 1: system control" extern const char *s_THUSTR_1; // = THUSTR_1; //#define THUSTR_2 "level 2: human bbq" extern const char *s_THUSTR_2; // = THUSTR_2; //#define THUSTR_3 "level 3: power control" extern const char *s_THUSTR_3; // = THUSTR_3; //#define THUSTR_4 "level 4: wormhole" extern const char *s_THUSTR_4; // = THUSTR_4; //#define THUSTR_5 "level 5: hanger" extern const char *s_THUSTR_5; // = THUSTR_5; //#define THUSTR_6 "level 6: open season" extern const char *s_THUSTR_6; // = THUSTR_6; //#define THUSTR_7 "level 7: prison" extern const char *s_THUSTR_7; // = THUSTR_7; //#define THUSTR_8 "level 8: metal" extern const char *s_THUSTR_8; // = THUSTR_8; //#define THUSTR_9 "level 9: stronghold" extern const char *s_THUSTR_9; // = THUSTR_9; //#define THUSTR_10 "level 10: redemption" extern const char *s_THUSTR_10; // = THUSTR_10; //#define THUSTR_11 "level 11: storage facility" extern const char *s_THUSTR_11; // = THUSTR_11; //#define THUSTR_12 "level 12: crater" extern const char *s_THUSTR_12; // = THUSTR_12; //#define THUSTR_13 "level 13: nukage processing" extern const char *s_THUSTR_13; // = THUSTR_13; //#define THUSTR_14 "level 14: steel works" extern const char *s_THUSTR_14; // = THUSTR_14; //#define THUSTR_15 "level 15: dead zone" extern const char *s_THUSTR_15; // = THUSTR_15; //#define THUSTR_16 "level 16: deepest reaches" extern const char *s_THUSTR_16; // = THUSTR_16; //#define THUSTR_17 "level 17: processing area" extern const char *s_THUSTR_17; // = THUSTR_17; //#define THUSTR_18 "level 18: mill" extern const char *s_THUSTR_18; // = THUSTR_18; //#define THUSTR_19 "level 19: shipping/respawning" extern const char *s_THUSTR_19; // = THUSTR_19; //#define THUSTR_20 "level 20: central processing" extern const char *s_THUSTR_20; // = THUSTR_20; //#define THUSTR_21 "level 21: administration center" extern const char *s_THUSTR_21; // = THUSTR_21; //#define THUSTR_22 "level 22: habitat" extern const char *s_THUSTR_22; // = THUSTR_22; //#define THUSTR_23 "level 23: lunar mining project" extern const char *s_THUSTR_23; // = THUSTR_23; //#define THUSTR_24 "level 24: quarry" extern const char *s_THUSTR_24; // = THUSTR_24; //#define THUSTR_25 "level 25: baron's den" extern const char *s_THUSTR_25; // = THUSTR_25; //#define THUSTR_26 "level 26: ballistyx" extern const char *s_THUSTR_26; // = THUSTR_26; //#define THUSTR_27 "level 27: mount pain" extern const char *s_THUSTR_27; // = THUSTR_27; //#define THUSTR_28 "level 28: heck" extern const char *s_THUSTR_28; // = THUSTR_28; //#define THUSTR_29 "level 29: river styx" extern const char *s_THUSTR_29; // = THUSTR_29; //#define THUSTR_30 "level 30: last call" extern const char *s_THUSTR_30; // = THUSTR_30; //#define THUSTR_31 "level 31: pharaoh" extern const char *s_THUSTR_31; // = THUSTR_31; //#define THUSTR_32 "level 32: caribbean" extern const char *s_THUSTR_32; // = THUSTR_32; //#define HUSTR_CHATMACRO1 "I'm ready to kick butt!" extern const char *s_HUSTR_CHATMACRO1; // = HUSTR_CHATMACRO1; //#define HUSTR_CHATMACRO2 "I'm OK." extern const char *s_HUSTR_CHATMACRO2; // = HUSTR_CHATMACRO2; //#define HUSTR_CHATMACRO3 "I'm not looking too good!" extern const char *s_HUSTR_CHATMACRO3; // = HUSTR_CHATMACRO3; //#define HUSTR_CHATMACRO4 "Help!" extern const char *s_HUSTR_CHATMACRO4; // = HUSTR_CHATMACRO4; //#define HUSTR_CHATMACRO5 "You suck!" extern const char *s_HUSTR_CHATMACRO5; // = HUSTR_CHATMACRO5; //#define HUSTR_CHATMACRO6 "Next time, scumbag..." extern const char *s_HUSTR_CHATMACRO6; // = HUSTR_CHATMACRO6; //#define HUSTR_CHATMACRO7 "Come here!" extern const char *s_HUSTR_CHATMACRO7; // = HUSTR_CHATMACRO7; //#define HUSTR_CHATMACRO8 "I'll take care of it." extern const char *s_HUSTR_CHATMACRO8; // = HUSTR_CHATMACRO8; //#define HUSTR_CHATMACRO9 "Yes" extern const char *s_HUSTR_CHATMACRO9; // = HUSTR_CHATMACRO9; //#define HUSTR_CHATMACRO0 "No" extern const char *s_HUSTR_CHATMACRO0; // = HUSTR_CHATMACRO0; //#define HUSTR_TALKTOSELF1 "You mumble to yourself" extern const char *s_HUSTR_TALKTOSELF1; // = HUSTR_TALKTOSELF1; //#define HUSTR_TALKTOSELF2 "Who's there?" extern const char *s_HUSTR_TALKTOSELF2; // = HUSTR_TALKTOSELF2; //#define HUSTR_TALKTOSELF3 "You scare yourself" extern const char *s_HUSTR_TALKTOSELF3; // = HUSTR_TALKTOSELF3; //#define HUSTR_TALKTOSELF4 "You start to rave" extern const char *s_HUSTR_TALKTOSELF4; // = HUSTR_TALKTOSELF4; //#define HUSTR_TALKTOSELF5 "You've lost it..." extern const char *s_HUSTR_TALKTOSELF5; // = HUSTR_TALKTOSELF5; //#define HUSTR_MESSAGESENT "[Message Sent]" extern const char *s_HUSTR_MESSAGESENT; // = HUSTR_MESSAGESENT; // The following should NOT be changed unless it seems // just AWFULLY necessary //#define HUSTR_PLRGREEN "Green: " extern const char *s_HUSTR_PLRGREEN; // = HUSTR_PLRGREEN; //#define HUSTR_PLRINDIGO "Indigo: " extern const char *s_HUSTR_PLRINDIGO; // = HUSTR_PLRINDIGO; //#define HUSTR_PLRBROWN "Brown: " extern const char *s_HUSTR_PLRBROWN; // = HUSTR_PLRBROWN; //#define HUSTR_PLRRED "Red: " extern const char *s_HUSTR_PLRRED; // = HUSTR_PLRRED; // Ty - Note these are chars, not char *, so name is sc_XXX //#define HUSTR_KEYGREEN 'g' extern char sc_HUSTR_KEYGREEN; // = HUSTR_KEYGREEN; //#define HUSTR_KEYINDIGO 'i' extern char sc_HUSTR_KEYINDIGO; // = HUSTR_KEYINDIGO; //#define HUSTR_KEYBROWN 'b' extern char sc_HUSTR_KEYBROWN; // = HUSTR_KEYBROWN; //#define HUSTR_KEYRED 'r' extern char sc_HUSTR_KEYRED; // = HUSTR_KEYRED; // // AM_map.C // //#define AMSTR_FOLLOWON "Follow Mode ON" extern const char* s_AMSTR_FOLLOWON; // = AMSTR_FOLLOWON; //#define AMSTR_FOLLOWOFF "Follow Mode OFF" extern const char* s_AMSTR_FOLLOWOFF; // = AMSTR_FOLLOWOFF; //#define AMSTR_GRIDON "Grid ON" extern const char* s_AMSTR_GRIDON; // = AMSTR_GRIDON; //#define AMSTR_GRIDOFF "Grid OFF" extern const char* s_AMSTR_GRIDOFF; // = AMSTR_GRIDOFF; //#define AMSTR_MARKEDSPOT "Marked Spot" extern const char* s_AMSTR_MARKEDSPOT; // = AMSTR_MARKEDSPOT; //#define AMSTR_MARKSCLEARED "All Marks Cleared" extern const char* s_AMSTR_MARKSCLEARED; // = AMSTR_MARKSCLEARED; // CPhipps - automap rotate & overlay extern const char* s_AMSTR_ROTATEON; extern const char* s_AMSTR_ROTATEOFF; extern const char* s_AMSTR_OVERLAYON; extern const char* s_AMSTR_OVERLAYOFF; // // ST_stuff.C // //#define STSTR_MUS "Music Change" extern const char* s_STSTR_MUS; // = STSTR_MUS; //#define STSTR_NOMUS "IMPOSSIBLE SELECTION" extern const char* s_STSTR_NOMUS; // = STSTR_NOMUS; //#define STSTR_DQDON "Degreelessness Mode On" extern const char* s_STSTR_DQDON; // = STSTR_DQDON; //#define STSTR_DQDOFF "Degreelessness Mode Off" extern const char* s_STSTR_DQDOFF; // = STSTR_DQDOFF; //#define STSTR_KFAADDED "Very Happy Ammo Added" extern const char* s_STSTR_KFAADDED; // = STSTR_KFAADDED; //#define STSTR_FAADDED "Ammo (no keys) Added" extern const char* s_STSTR_FAADDED; // = STSTR_FAADDED; //#define STSTR_NCON "No Clipping Mode ON"