diff options
author | peter1138 <peter1138@openttd.org> | 2006-09-27 18:17:01 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-09-27 18:17:01 +0000 |
commit | 653e7fa54843b4427908b47d2e7da8ee48071a18 (patch) | |
tree | 89f67db5c4825d95a0c5687363b43db1311ffae7 /sound.h | |
parent | 3ded010d91a755f3f719d5bfe91cda6d161ef2d0 (diff) | |
download | openttd-653e7fa54843b4427908b47d2e7da8ee48071a18.tar.xz |
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
Diffstat (limited to 'sound.h')
-rw-r--r-- | sound.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -16,7 +16,18 @@ typedef struct MusicFileSettings { VARDEF MusicFileSettings msf; +typedef struct FileEntry { + uint32 file_offset; + uint32 file_size; + uint16 rate; + uint8 bits_per_sample; + uint8 channels; + uint8 volume; + uint8 priority; +} FileEntry; + bool SoundInitialize(const char *filename); +uint GetNumOriginalSounds(void); typedef enum SoundFx { SND_02_SPLAT, // 0 == 0x00 ! @@ -97,5 +108,6 @@ typedef enum SoundFx { void SndPlayTileFx(SoundFx sound, TileIndex tile); void SndPlayVehicleFx(SoundFx sound, const Vehicle *v); void SndPlayFx(SoundFx sound); +void SndCopyToPool(void); #endif /* SOUND_H */ |