Added application setting objects.

This commit is contained in:
2025-03-22 15:28:46 -04:00
parent 107a20b713
commit d988961513
10 changed files with 63 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ public class AudioBitmapImageCache(IAudioImageExtractor audioImageExtractor) : M
protected override MemoryCacheOptions Options => new()
{
SizeLimit = 40,
SizeLimit = 200_000_000,
CompactionPercentage = 0.2,
};
@@ -87,6 +87,6 @@ public class AudioBitmapImageCache(IAudioImageExtractor audioImageExtractor) : M
protected override long GetEntrySize(BitmapImage entry)
{
return entry.PixelWidth * entry.PixelHeight;
return entry.DecodePixelWidth * entry.DecodePixelHeight;
}
}