853b27d378ef6887576aa6f0ec2f9c2653cccfe5
[rocksndiamonds.git] / src / game_em / sample.h
1 #ifndef SAMPLE_H
2 #define SAMPLE_H
3
4 #include "main_em.h"
5
6
7 extern void play_sound(int, int, int);
8 extern void play_element_sound(int, int, int, int);
9
10 extern char play[SAMPLE_MAX];
11 extern int sound_pipe[2];
12 extern short *sound_data[SAMPLE_MAX];
13 extern long sound_length[SAMPLE_MAX];
14
15 #define MIXER_MAX 4     /* maximum number of samples we can play at once */
16
17 #if defined(AUDIO_UNIX_NATIVE)
18
19 enum
20 {
21   AUDIO_ULAW = 0,
22   AUDIO_U8
23 };
24
25 #endif  /* AUDIO_UNIX_NATIVE */
26
27 #endif  /* SAMPLE_H */