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