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