]> granicus.if.org Git - nethack/commitdiff
add comment prior to soundeffect_automapping table
authornhmall <nhmall@nethack.org>
Sat, 25 Feb 2023 19:38:53 +0000 (14:38 -0500)
committernhmall <nhmall@nethack.org>
Sat, 25 Feb 2023 19:38:53 +0000 (14:38 -0500)
src/sounds.c

index d421dbae11c4476d2a8a9598ec852e14962f365b..35964e0928bebefc934eae2e0013154e64ad459f 100644 (file)
@@ -1934,6 +1934,20 @@ struct soundeffect_automapping {
     const char *base_filename;
 };
 
+/*
+ * The base_filename field represents the unique part of a file
+ * name to find in the file system (or in the embedded resources for
+ * some soundlibs). It is the soundeffects file that will be played
+ * for the sound effect identified by seid. Without an entry in the
+ * table below, the automapping of a soundeffect id to a particular
+ * file name will not occur and no soundeffect will be possible.
+
+ * The entries in the following table are not required to be in
+ * any particular order, but an entry for each soundeffect from the
+ * sound_effect_entries enum in sndprocs.h should be present.
+ *
+ */
+
 static const struct soundeffect_automapping
     se_mappings_init[number_of_se_entries] = {
     { se_zero_invalid,                  "" },