Preparations for Song Format 1.1.0 (#734)

* Add missing Song Format 1.1.0 Tags

* Add Instrumental & Vocals

* Add Instrumental & Vocals
This commit is contained in:
Rap-Voca authored and GitHub committed 2024-11-24 07:14:23 +01:00
1 parent bdadbfcbd8
commit 8dde27426c
2 files changed
+41

No files matched your search

+25
View File
@@ -172,6 +172,7 @@ namespace VocaluxeLib.Songs
break;
case "SOURCE":
case "YOUTUBE":
case "PROVIDEDBY":
_Song.Source = value;
break;
case "LENGTH":
@@ -190,6 +191,30 @@ namespace VocaluxeLib.Songs
return false;
}
break;
case "INSTRUMENTAL":
if (File.Exists(Path.Combine(_Song.Folder, value)))
{
_Song.InstrumentalFileName = value;
headerFlags |= EHeaderFlags.Instrumental;
}
else
{
CLog.CSongLog.Error("[{SongFileName}] Can't find instrumental audio file: {AudioFile}", CLog.Params(_Song.FileName, Path.Combine(_Song.Folder, value)));
return false;
}
break;
case "VOCALS":
if (File.Exists(Path.Combine(_Song.Folder, value)))
{
_Song.VocalsFileName = value;
headerFlags |= EHeaderFlags.Vocals;
}
else
{
CLog.CSongLog.Error("[{SongFileName}] Can't find vocal audio file: {AudioFile}", CLog.Params(_Song.FileName, Path.Combine(_Song.Folder, value)));
return false;
}
break;
case "BPM":
if (CHelper.TryParse(value, out _Song.BPM))
{