From: nhmall Date: Sat, 25 Feb 2023 19:38:53 +0000 (-0500) Subject: add comment prior to soundeffect_automapping table X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=945241c3b23073d26939b471a979b05cfc450608;p=nethack add comment prior to soundeffect_automapping table --- diff --git a/src/sounds.c b/src/sounds.c index d421dbae1..35964e092 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -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, "" },