6 REGISTRY(Sounds, BITS(8))
7 #define Sounds_from(i) _Sounds_from(i, SND_Null)
8 REGISTER_REGISTRY(Sounds)
10 #define SOUND(name, path) \
11 string SND_##name##_get() { return path; } \
12 REGISTER(Sounds, SND, name, m_id, NEW(Sound, SND_##name##_get))
14 // Used in places where a string is required
15 #define SND(id) Sound_fixpath(SND_##id)
18 FOREACH(Sounds, true, LAMBDA({
19 it.sound_precache(it);
23 SOUND(Null, "misc/null");