5 REGISTRY(Sounds, BITS(9))
6 #define Sounds_from(i) _Sounds_from(i, SND_Null)
7 REGISTER_REGISTRY(Sounds)
9 #define SOUND(name, path) \
10 string SND_##name##_get() { return path; } \
11 REGISTER(Sounds, SND, name, m_id, NEW(Sound, SND_##name##_get))
13 /** @deprecated Used in places where a string is required for legacy reasons, prefer using SND_id constants instead */
14 #define SND(id) Sound_fixpath(SND_##id)
17 FOREACH(Sounds, true, it.sound_precache(it));
20 SOUND(Null, "misc/null");