From 6a9fd1bf5f9d3a686d1cfaf018427f12dadeb736 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 30 Apr 2024 17:44:35 -0500 Subject: [PATCH] Add 'contentidunsafe' property to MUSICDEF This allows marking music in MUSICDEF as unsafe for Content ID and other similar content surveillance mechanisms. --- src/s_sound.c | 5 +++++ src/s_sound.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/s_sound.c b/src/s_sound.c index d98f506b8..c4d1993bf 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -2041,6 +2041,11 @@ ReadMusicDefFields textline[0] = toupper(textline[0]); def->important = (textline[0] == 'Y' || textline[0] == 'T' || textline[0] == '1'); } + else if (!stricmp(stoken, "contentidunsafe")) + { + textline[0] = toupper(textline[0]); + def->contentidunsafe = (textline[0] == 'Y' || textline[0] == 'T' || textline[0] == '1'); + } else { MusicDefError(CONS_WARNING, diff --git a/src/s_sound.h b/src/s_sound.h index d76deb441..3b780300e 100644 --- a/src/s_sound.h +++ b/src/s_sound.h @@ -171,6 +171,7 @@ struct musicdef_t int volume; int debug_volume; boolean important; + boolean contentidunsafe; musicdef_t *next; soundtestsequence_t sequence; };