summaryrefslogtreecommitdiff
path: root/sound.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-09 17:04:08 +0000
committertruelight <truelight@openttd.org>2004-08-09 17:04:08 +0000
commitefaeb275f78e18d594d9ee8ff04eccd2dc59512c (patch)
treebc8e1f56d77706d14d048cb2d99e53291930b520 /sound.h
downloadopenttd-efaeb275f78e18d594d9ee8ff04eccd2dc59512c.tar.xz
(svn r1) Import of revision 975 of old (crashed) SVN
Diffstat (limited to 'sound.h')
-rw-r--r--sound.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/sound.h b/sound.h
new file mode 100644
index 000000000..989e69cec
--- /dev/null
+++ b/sound.h
@@ -0,0 +1,25 @@
+#ifndef SOUND_H
+#define SOUND_H
+
+typedef struct Mixer Mixer;
+
+typedef struct MusicFileSettings {
+ byte playlist;
+ byte music_vol;
+ byte effect_vol;
+ byte custom_1[33];
+ byte custom_2[33];
+ bool btn_down;
+ bool shuffle;
+} MusicFileSettings;
+
+VARDEF byte _music_wnd_cursong;
+VARDEF bool _song_is_active;
+VARDEF byte _cur_playlist[33];
+VARDEF MusicFileSettings msf;
+VARDEF Mixer *_mixer;
+
+bool MxInitialize(uint rate, const char *filename);
+void MxMixSamples(Mixer *mx, void *buffer, uint samples);
+
+#endif /* SOUND_H */