| 84 | } // namespace |
| 85 | |
| 86 | SoundSystemOAL::SoundSystemOAL() |
| 87 | { |
| 88 | // Surface the decoded-PCM cache (64 MB LRU) in the memory-budget panel and |
| 89 | // let the global pressure path evict it. Priority is low — PCM re-decodes |
| 90 | // cheaply from disk, so it's a good early eviction candidate. |
| 91 | _pcmProbe.Register( |
| 92 | "Audio.PcmCache", 0.05f, [this] { return _pcmCache.GetStats().bytes; }, |
| 93 | [] { return Audio::PcmCache::kMaxTotalBytes; }, [this] { return _pcmCache.GetStats().entries; }, |
| 94 | [this](size_t bytes) { return _pcmCache.Evict(bytes); }); |
| 95 | } |
| 96 | |
| 97 | SoundSystemOAL::~SoundSystemOAL() |
| 98 | { |