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