MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / findInCache

Method findInCache

src/engine/AudioCache.cpp:179–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179bool AudioCache::findInCache(const std::filesystem::path & path, std::shared_ptr<AudioData const> & result)
180{
181 result.reset();
182
183 std::lock_guard<std::mutex> guard(m_LoadedDataMutex);
184
185 result = m_LoadedAudioData[path.generic_string()];
186 if (result)
187 return true;
188
189 result = std::make_shared<AudioData const>();
190 m_LoadedAudioData[path.generic_string()] = result;
191 return false;
192}
193
194void AudioCache::sendAudioLoadedMessage(std::shared_ptr<AudioData const> audio, char const * path)
195{

Callers

nothing calls this directly

Calls 1

resetMethod · 0.80

Tested by

no test coverage detected