1 /* $Id: sound_type.h 26425 2014-03-23 21:56:48Z frosch $ */
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/>.
10 /** @file sound_type.h Types related to sounds. */
20 uint8 bits_per_sample
;
24 byte grf_container_ver
; ///< NewGRF container version if the sound is from a NewGRF.
28 * Sound effects from baseset.
30 * This enum contains the sound effects from the sound baseset.
31 * For hysterical raisins the order of sound effects in the baseset
32 * is different to the order they are referenced in TTD/NewGRF.
33 * - The first two sound effects from the baseset are inserted at position 39.
34 * (see translation table _sound_idx)
35 * - The order in the enum is the order using in TTD/NewGRF.
36 * - The naming of the enum values includes the position in the baseset.
37 * That is, for sound effects 0x02 to 0x28 the naming is off-by-two.
41 SND_02_SPLAT_WATER
= 0, ///< Water construction.
42 SND_03_FACTORY_WHISTLE
,
44 SND_05_TRAIN_THROUGH_TUNNEL
,
47 SND_08_PLANE_TAKE_OFF
,
50 SND_0B_MINING_MACHINERY
,
51 SND_0C_ELECTRIC_SPARK
,
53 SND_0E_LEVEL_CROSSING
,
54 SND_0F_VEHICLE_BREAKDOWN
,
55 SND_10_TRAIN_BREAKDOWN
,
57 SND_12_EXPLOSION
, // 16 == 0x10
60 SND_15_BEEP
, // 19 == 0x13
61 SND_16_MORSE
, // 20 == 0x14
64 SND_19_BUS_START_PULL_AWAY
,
65 SND_1A_BUS_START_PULL_AWAY_WITH_HORN
,
70 SND_1F_SPLAT_OTHER
, ///< Non-water non-rail construction.
71 SND_20_SPLAT_RAIL
, ///< Rail construction.
78 SND_27_BLACKSMITH_ANVIL
,
79 SND_28_SAWMILL
, // 38 == 0x26 !
80 SND_00_GOOD_YEAR
, // 39 == 0x27 !
81 SND_01_BAD_YEAR
, // 40 == 0x28 !
82 SND_29_RIP
, // 41 == 0x29 !
83 SND_2A_EXTRACT_AND_POP
,
87 SND_2E_EXTRACT_AND_POP
,
94 SND_35_COMEDY_BREAKDOWN
,
96 SND_37_BALLOON_SQUEAK
,
99 SND_3A_COMEDY_BREAKDOWN_2
,
102 SND_3D_ANOTHER_JET_OVERHEAD
,
105 SND_40_COMEDY_CAR_START_AND_PULL_AWAY
,
110 SND_45_PLANE_CRASHING
,
111 SND_46_PLANE_ENGINE_SPUTTERING
,
113 SND_48_DISTANT_BIRD
, // 72 == 0x48
117 /** The number of sounds in the original sample.cat */
118 static const uint ORIGINAL_SAMPLE_COUNT
= 73;
120 typedef uint16 SoundID
;
122 static const SoundID INVALID_SOUND
= 0xFFFF;
124 #endif /* SOUND_TYPE_H */