rnd-20040927-3-src
[rocksndiamonds.git] / src / game_em / sample.h
1 #ifndef SAMPLE_H
2 #define SAMPLE_H
3
4 #include "main_em.h"
5
6 #if 0
7
8 enum
9 {
10   SAMPLE_blank = 0,     /* player walks on blank */
11   SAMPLE_roll,          /* player pushes stone/bomb/nut/spring */
12   SAMPLE_stone,         /* stone hits ground */
13   SAMPLE_nut,           /* nut hits ground */
14   SAMPLE_crack,         /* stone hits nut */
15   SAMPLE_bug,           /* bug moves */
16   SAMPLE_tank,          /* tank moves */
17   SAMPLE_android,       /* android places something */
18   SAMPLE_spring,        /* spring hits ground/wall/bumper, stone hits spring */
19   SAMPLE_slurp,         /* spring kills alien */
20   SAMPLE_eater,         /* eater sits/eats diamond */
21   SAMPLE_alien,         /* alien moves */
22   SAMPLE_collect,       /* player collects object */
23   SAMPLE_diamond,       /* diamond/emerald hits ground */
24   SAMPLE_squash,        /* stone squashes diamond */
25   SAMPLE_wonderfall,    /* object falls thru wonderwall */
26   SAMPLE_drip,          /* drip hits ground */
27   SAMPLE_push,          /* player pushes balloon/android */
28   SAMPLE_dirt,          /* player walks on dirt */
29   SAMPLE_acid,          /* acid splashes */
30   SAMPLE_ball,          /* ball places something */
31   SAMPLE_grow,          /* growing wall grows */
32   SAMPLE_wonder,        /* wonderwall moves (is active) */
33   SAMPLE_door,          /* player goes thru door */
34   SAMPLE_exit,          /* player goes in exit */
35   SAMPLE_dynamite,      /* player places dynamite */
36   SAMPLE_tick,          /* dynamite ticks */
37   SAMPLE_press,         /* player presses wheel/wind/switch */
38   SAMPLE_wheel,         /* wheel moves */
39   SAMPLE_boom,          /* explosion */
40   SAMPLE_time,          /* time runs out */
41   SAMPLE_die,           /* player dies */
42
43   SAMPLE_MAX
44 };
45
46 #endif
47
48 extern void play_sound(int, int, int);
49 extern void play_element_sound(int, int, int, int);
50
51 extern char play[SAMPLE_MAX];
52 extern int sound_pipe[2];
53 extern short *sound_data[SAMPLE_MAX];
54 extern long sound_length[SAMPLE_MAX];
55
56 #define MIXER_MAX 4     /* maximum number of samples we can play at once */
57
58 #if defined(AUDIO_UNIX_NATIVE)
59
60 enum
61 {
62   AUDIO_ULAW = 0,
63   AUDIO_U8
64 };
65
66 #endif  /* AUDIO_UNIX_NATIVE */
67
68 #endif  /* SAMPLE_H */