Files
nethack/include
nhmall 8bbe9282aa add soundeffects hooks to core
Insert the calls to trigger a number of potential soundeffects
into the core.

If no additional soundlib support is integrated into the
build, then the Soundeffect macro (sndprocs.h) expands to nothing:

[#define Soundeffect(seid, vol)
]

If, however, at least one additional soundlib support is integrated
into the build, then the Soundeffect macro gets defined as this
in sndprocs.h:

[#define Soundeffect(seid, vol) \
    do {                                                              \
        if (!Deaf && soundprocs.sound_soundeffect                     \
            && ((soundprocs.sndcap & SNDCAP_SOUNDEFFECTS) != 0))      \
            (*soundprocs.sound_soundeffect)(emptystr, (seid), (vol)); \
    } while(0)
]

That macro definition checks for the hero not being Deaf; it checks
to ensure that the active soundlib interface has a non-null
sound_soundeffect() function pointer; and it checks to ensure
that the active soundlib interface has declared that it supports
soundeffects by setting the SNDCAP_SOUNDEFFECTS bit in its sndcap
entry. That just means that the interface routines are prepared to
accept and deal with the calls from the core, whether or not it
actually produces the desired soundeffect.
2023-01-20 14:20:08 -05:00
..
2022-02-04 11:01:20 -05:00
2022-03-13 13:58:56 -07:00
2022-11-29 21:53:21 -05:00
2022-07-19 21:23:26 +03:00
2022-07-19 21:23:26 +03:00
2022-11-29 21:53:21 -05:00
2022-10-30 16:08:14 -04:00
2023-01-19 18:51:42 -05:00
2022-12-07 16:45:35 -08:00
2022-06-30 23:48:18 -04:00
2023-01-19 18:51:42 -05:00
2022-11-10 15:44:53 -08:00
2022-10-26 14:21:23 -04:00
2023-01-15 11:04:35 -08:00
2021-01-26 21:06:16 -05:00
2022-11-29 21:53:21 -05:00
2023-01-19 18:51:42 -05:00
2022-12-26 14:56:12 -08:00
2022-08-23 23:27:21 +03:00
2023-01-19 18:51:42 -05:00
2022-07-01 08:36:03 -04:00
2022-03-11 07:33:28 -05:00
2022-06-19 02:30:45 -07:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00
2023-01-12 14:54:05 -08:00
2023-01-12 14:54:05 -08:00
2023-01-19 18:51:42 -05:00
2023-01-17 20:11:45 +02:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2023-01-17 20:11:45 +02:00
2022-07-23 23:11:13 -07:00
2023-01-20 14:20:08 -05:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-12-10 12:27:18 -05:00
2022-12-10 12:27:18 -05:00
2020-08-12 16:15:28 -07:00
2022-10-26 14:21:23 -04:00
2022-12-06 00:49:52 -08:00
2022-10-29 10:54:25 -04:00
2022-11-29 21:53:21 -05:00
2023-01-06 15:53:06 +02:00
2022-06-30 23:48:18 -04:00
2023-01-09 23:34:32 -08:00
2023-01-19 20:03:45 -05:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2022-11-29 21:53:21 -05:00
2022-11-29 21:53:21 -05:00