MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SoundSystemOAL

Method SoundSystemOAL

engine/PoseidonOpenAL/SoundSystemOAL.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84} // namespace
85
86SoundSystemOAL::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
97SoundSystemOAL::~SoundSystemOAL()
98{

Callers

nothing calls this directly

Calls 3

GetStatsMethod · 0.80
EvictMethod · 0.80
RegisterMethod · 0.45

Tested by

no test coverage detected