rnd-20050307-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_clone, /* android places something */
19   SAMPLE_android_move,  /* android moves */
20   SAMPLE_spring,        /* spring hits ground/wall/bumper, stone hits spring */
21   SAMPLE_slurp,         /* spring kills alien */
22   SAMPLE_eater,         /* eater sits */
23   SAMPLE_eater_eat,     /* eater eats diamond */
24   SAMPLE_alien,         /* alien moves */
25   SAMPLE_collect,       /* player collects object */
26   SAMPLE_diamond,       /* diamond/emerald hits ground */
27   SAMPLE_squash,        /* stone squashes diamond */
28   SAMPLE_wonderfall,    /* object falls thru wonderwall */
29   SAMPLE_drip,          /* drip hits ground */
30   SAMPLE_push,          /* player pushes balloon/android */
31   SAMPLE_dirt,          /* player walks on dirt */
32   SAMPLE_acid,          /* acid splashes */
33   SAMPLE_ball,          /* ball places something */
34   SAMPLE_grow,          /* growing wall grows */
35   SAMPLE_wonder,        /* wonderwall moves (is active) */
36   SAMPLE_door,          /* player goes thru door */
37   SAMPLE_exit_open,     /* exit opens */
38   SAMPLE_exit_leave,    /* player goes into exit */
39   SAMPLE_dynamite,      /* player places dynamite */
40   SAMPLE_tick,          /* dynamite ticks */
41   SAMPLE_press,         /* player presses wheel/wind/switch */
42   SAMPLE_wheel,         /* wheel moves */
43   SAMPLE_boom,          /* explosion */
44   SAMPLE_time,          /* time runs out */
45   SAMPLE_die,           /* player dies */
46
47   SAMPLE_MAX
48 };
49
50 #endif
51
52 extern void play_sound(int, int, int);
53 extern void play_element_sound(int, int, int, int);
54
55 extern char play[SAMPLE_MAX];
56 extern int sound_pipe[2];
57 extern short *sound_data[SAMPLE_MAX];
58 extern long sound_length[SAMPLE_MAX];
59
60 #define MIXER_MAX 4     /* maximum number of samples we can play at once */
61
62 #if defined(AUDIO_UNIX_NATIVE)
63
64 enum
65 {
66   AUDIO_ULAW = 0,
67   AUDIO_U8
68 };
69
70 #endif  /* AUDIO_UNIX_NATIVE */
71
72 #endif  /* SAMPLE_H */