diff options
author | rubidium <rubidium@openttd.org> | 2007-12-29 09:24:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-29 09:24:26 +0000 |
commit | e5e75bd8f8f7df43ff39f2cb15bd12d200f1131f (patch) | |
tree | 1d1372475980446f190e07781baf08447a9c6759 /src/sound_func.h | |
parent | 6ae93027083cf202741397d7a6584d628448ba89 (diff) | |
download | openttd-e5e75bd8f8f7df43ff39f2cb15bd12d200f1131f.tar.xz |
(svn r11719) -Codechange: split sound.h in a header with types and one with functions.
Diffstat (limited to 'src/sound_func.h')
-rw-r--r-- | src/sound_func.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sound_func.h b/src/sound_func.h new file mode 100644 index 000000000..d60822ca5 --- /dev/null +++ b/src/sound_func.h @@ -0,0 +1,22 @@ +/* $Id$ */ + +/** @file sound_func.h Functions related to sound. */ + +#ifndef SOUND_FUNC_H +#define SOUND_FUNC_H + +#include "sound_type.h" +#include "vehicle_type.h" +#include "tile_type.h" + +extern MusicFileSettings msf; + +bool SoundInitialize(const char *filename); +uint GetNumOriginalSounds(); + +void SndPlayTileFx(SoundFx sound, TileIndex tile); +void SndPlayVehicleFx(SoundFx sound, const Vehicle *v); +void SndPlayFx(SoundFx sound); +void SndCopyToPool(); + +#endif /* SOUND_FUNC_H */ |