Fix ICU iterators on leading/trailing whitespace
[openttd/fttd.git] / src / sound_type.h
blobb014c26943bf4e567c286081b14b733724cd7d0c
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD 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, version 2.
6 * OpenTTD 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.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file sound_type.h Types related to sounds. */
12 #ifndef SOUND_TYPE_H
13 #define SOUND_TYPE_H
15 struct SoundEntry {
16 uint8 file_slot;
17 size_t file_offset;
18 size_t file_size;
19 uint16 rate;
20 uint8 bits_per_sample;
21 uint8 channels;
22 uint8 volume;
23 uint8 priority;
24 byte grf_container_ver; ///< NewGRF container version if the sound is from a NewGRF.
27 enum SoundFx {
28 SND_BEGIN = 0,
29 SND_02_SPLAT = 0, // 0 == 0x00 !
30 SND_03_FACTORY_WHISTLE,
31 SND_04_TRAIN,
32 SND_05_TRAIN_THROUGH_TUNNEL,
33 SND_06_SHIP_HORN,
34 SND_07_FERRY_HORN,
35 SND_08_PLANE_TAKE_OFF,
36 SND_09_JET,
37 SND_0A_TRAIN_HORN,
38 SND_0B_MINING_MACHINERY,
39 SND_0C_ELECTRIC_SPARK,
40 SND_0D_STEAM,
41 SND_0E_LEVEL_CROSSING,
42 SND_0F_VEHICLE_BREAKDOWN,
43 SND_10_TRAIN_BREAKDOWN,
44 SND_11_CRASH,
45 SND_12_EXPLOSION, // 16 == 0x10
46 SND_13_BIG_CRASH,
47 SND_14_CASHTILL,
48 SND_15_BEEP, // 19 == 0x13
49 SND_16_MORSE, // 20 == 0x14
50 SND_17_SKID_PLANE,
51 SND_18_HELICOPTER,
52 SND_19_BUS_START_PULL_AWAY,
53 SND_1A_BUS_START_PULL_AWAY_WITH_HORN,
54 SND_1B_TRUCK_START,
55 SND_1C_TRUCK_START_2,
56 SND_1D_APPLAUSE,
57 SND_1E_OOOOH,
58 SND_1F_SPLAT, // 29 == 0x1D
59 SND_20_SPLAT_2, // 30 == 0x1E
60 SND_21_JACKHAMMER,
61 SND_22_CAR_HORN,
62 SND_23_CAR_HORN_2,
63 SND_24_SHEEP,
64 SND_25_COW,
65 SND_26_HORSE,
66 SND_27_BLACKSMITH_ANVIL,
67 SND_28_SAWMILL, // 38 == 0x26 !
68 SND_00_GOOD_YEAR, // 39 == 0x27 !
69 SND_01_BAD_YEAR, // 40 == 0x28 !
70 SND_29_RIP, // 41 == 0x29 !
71 SND_2A_EXTRACT_AND_POP,
72 SND_2B_COMEDY_HIT,
73 SND_2C_MACHINERY,
74 SND_2D_RIP_2,
75 SND_2E_EXTRACT_AND_POP,
76 SND_2F_POP,
77 SND_30_CARTOON_SOUND,
78 SND_31_EXTRACT,
79 SND_32_POP_2,
80 SND_33_PLASTIC_MINE,
81 SND_34_WIND,
82 SND_35_COMEDY_BREAKDOWN,
83 SND_36_CARTOON_CRASH,
84 SND_37_BALLOON_SQUEAK,
85 SND_38_CHAINSAW,
86 SND_39_HEAVY_WIND,
87 SND_3A_COMEDY_BREAKDOWN_2,
88 SND_3B_JET_OVERHEAD,
89 SND_3C_COMEDY_CAR,
90 SND_3D_ANOTHER_JET_OVERHEAD,
91 SND_3E_COMEDY_CAR_2,
92 SND_3F_COMEDY_CAR_3,
93 SND_40_COMEDY_CAR_START_AND_PULL_AWAY,
94 SND_41_MAGLEV,
95 SND_42_LOON_BIRD,
96 SND_43_LION,
97 SND_44_MONKEYS,
98 SND_45_PLANE_CRASHING,
99 SND_46_PLANE_ENGINE_SPUTTERING,
100 SND_47_MAGLEV_2,
101 SND_48_DISTANT_BIRD, // 72 == 0x48
102 SND_END
105 /** The number of sounds in the original sample.cat */
106 static const uint ORIGINAL_SAMPLE_COUNT = 73;
108 typedef uint16 SoundID;
110 #endif /* SOUND_TYPE_H */