2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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 /** @file sound_type.h Types related to sounds. */
18 uint8 bits_per_sample
;
22 byte grf_container_ver
; ///< NewGRF container version if the sound is from a NewGRF.
26 * Sound effects from baseset.
28 * This enum contains the sound effects from the sound baseset.
29 * For hysterical raisins the order of sound effects in the baseset
30 * is different to the order they are referenced in TTD/NewGRF.
31 * - The first two sound effects from the baseset are inserted at position 39.
32 * (see translation table _sound_idx)
33 * - The order in the enum is the order using in TTD/NewGRF.
34 * - The naming of the enum values includes the position in the baseset.
35 * That is, for sound effects 0x02 to 0x28 the naming is off-by-two.
39 SND_02_SPLAT_WATER
= 0, ///< Water construction.
40 SND_03_FACTORY_WHISTLE
,
42 SND_05_TRAIN_THROUGH_TUNNEL
,
45 SND_08_PLANE_TAKE_OFF
,
48 SND_0B_MINING_MACHINERY
,
49 SND_0C_ELECTRIC_SPARK
,
51 SND_0E_LEVEL_CROSSING
,
52 SND_0F_VEHICLE_BREAKDOWN
,
53 SND_10_TRAIN_BREAKDOWN
,
55 SND_12_EXPLOSION
, // 16 == 0x10
58 SND_15_BEEP
, // 19 == 0x13
59 SND_16_MORSE
, // 20 == 0x14
62 SND_19_BUS_START_PULL_AWAY
,
63 SND_1A_BUS_START_PULL_AWAY_WITH_HORN
,
68 SND_1F_SPLAT_OTHER
, ///< Non-water non-rail construction.
69 SND_20_SPLAT_RAIL
, ///< Rail construction.
76 SND_27_BLACKSMITH_ANVIL
,
77 SND_28_SAWMILL
, // 38 == 0x26 !
78 SND_00_GOOD_YEAR
, // 39 == 0x27 !
79 SND_01_BAD_YEAR
, // 40 == 0x28 !
80 SND_29_RIP
, // 41 == 0x29 !
81 SND_2A_EXTRACT_AND_POP
,
85 SND_2E_EXTRACT_AND_POP
,
92 SND_35_COMEDY_BREAKDOWN
,
94 SND_37_BALLOON_SQUEAK
,
97 SND_3A_COMEDY_BREAKDOWN_2
,
100 SND_3D_ANOTHER_JET_OVERHEAD
,
103 SND_40_COMEDY_CAR_START_AND_PULL_AWAY
,
108 SND_45_PLANE_CRASHING
,
109 SND_46_PLANE_ENGINE_SPUTTERING
,
111 SND_48_DISTANT_BIRD
, // 72 == 0x48
115 /** The number of sounds in the original sample.cat */
116 static const uint ORIGINAL_SAMPLE_COUNT
= 73;
118 typedef uint16 SoundID
;
120 static const SoundID INVALID_SOUND
= 0xFFFF;
122 #endif /* SOUND_TYPE_H */