summaryrefslogtreecommitdiff
path: root/src/sound_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-29 09:24:26 +0000
committerrubidium <rubidium@openttd.org>2007-12-29 09:24:26 +0000
commit445a733eb60eb53307bdae94c9ccb83a3007e32d (patch)
tree1d1372475980446f190e07781baf08447a9c6759 /src/sound_func.h
parentbb45f463550d08eb090ff104c75598f40a4c3ac0 (diff)
downloadopenttd-445a733eb60eb53307bdae94c9ccb83a3007e32d.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.h22
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 */