rnd-20040927-2-src
[rocksndiamonds.git] / src / game_em / sample.h
index e35d7e5f02cd0f7b169c4be7f9a239b70b1f48e4..e6bfa36940ee5e0d27f8b8f53e82717aa7f1a435 100644 (file)
@@ -15,9 +15,9 @@ enum
   SAMPLE_slurp,     /* spring kills alien */
   SAMPLE_eater,     /* eater sits/eats diamond */
   SAMPLE_alien,     /* alien moves */
-  SAMPLE_collect,   /* player collects diamond/emerald/dynamite/key/lenses/magnify */
+  SAMPLE_collect,   /* player collects object */
   SAMPLE_diamond,   /* diamond/emerald hits ground */
-  SAMPLE_squash,    /* stone squashes diamond, stone/emerald/diamond thru wonderwall */
+  SAMPLE_squash,    /* stone squashes diamond; object falls thru wonderwall */
   SAMPLE_drip,      /* drip hits ground */
   SAMPLE_push,      /* player pushes spring/balloon/android */
   SAMPLE_dirt,      /* player walks on dirt */
@@ -34,9 +34,12 @@ enum
   SAMPLE_boom,      /* explosion */
   SAMPLE_time,      /* time runs out */
   SAMPLE_die,       /* player dies */
+
   SAMPLE_MAX
 };
 
+extern void play_sound(int, int, int);
+
 extern char play[SAMPLE_MAX];
 extern int sound_pipe[2];
 extern short *sound_data[SAMPLE_MAX];
@@ -44,10 +47,14 @@ extern long sound_length[SAMPLE_MAX];
 
 #define MIXER_MAX 4 /* maximum number of samples we can play at once */
 
+#if defined(AUDIO_UNIX_NATIVE)
+
 enum
 {
   AUDIO_ULAW = 0,
   AUDIO_U8
 };
 
-#endif
+#endif /* AUDIO_UNIX_NATIVE */
+
+#endif /* SAMPLE_H */