Generate Covers for songs

This commit is contained in:
Flamefire committed 2014-10-23 17:05:57 +02:00
1 parent 0a48c6b74b
commit fe07a2f926
6 files changed
+27 -18

No files matched your search

+1
View File
@@ -283,6 +283,7 @@ namespace VocaluxeLib
public interface ICover
{
CTextureRef GetNoCover();
CTextureRef GenerateCover(string text, ECoverGeneratorType type, CSong firstSong);
}
public interface IDataBase
+3 -4
View File
@@ -314,11 +314,10 @@ namespace VocaluxeLib.Songs
return;
if (CoverFileName != "")
{
if (!CBase.DataBase.GetCover(Path.Combine(Folder, CoverFileName), ref _CoverTextureSmall, CBase.Config.GetCoverSize()))
_CoverTextureSmall = CBase.Cover.GetNoCover();
if (CBase.DataBase.GetCover(Path.Combine(Folder, CoverFileName), ref _CoverTextureSmall, CBase.Config.GetCoverSize()))
return;
}
else
_CoverTextureSmall = CBase.Cover.GetNoCover();
_CoverTextureSmall = CBase.Cover.GenerateCover(Title, ECoverGeneratorType.Song, null);
}
private void _CheckFiles()
+1
View File
@@ -29,6 +29,7 @@ namespace VocaluxeLib
public enum ECoverGeneratorType
{
Default,
Song,
Folder,
Artist,
Letter,