Added application setting objects.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user