6 REGISTRY(Sounds, BITS(8))
7 REGISTER_REGISTRY(RegisterSounds)
9 #define SOUND(name, path) \
10 string SND_##name##_get() { return path; } \
11 REGISTER(RegisterSounds, SND, Sounds, name, m_id, NEW(Sound, SND_##name##_get))
13 // Used in places where a string is required
14 #define SND(id) (SND_##id.sound_str())
16 STATIC_INIT(RegisterSounds_precache) {
17 FOREACH(Sounds, true, LAMBDA({
18 it.sound_precache(it);
22 SOUND(Null, "misc/null.wav");