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

Method LoadFromFile

src/engine/AudioCache.cpp:199–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199std::shared_ptr<AudioData const> AudioCache::LoadFromFile(const std::filesystem::path & path)
200{
201 std::shared_ptr<AudioData const> audio;
202
203 if (findInCache(path, audio))
204 return audio;
205
206 if ((audio = loadAudioFile (path)))
207 {
208 sendAudioLoadedMessage(audio, path.generic_string().c_str());
209 }
210 return audio;
211}
212
213std::shared_ptr<AudioData const> AudioCache::LoadFromFileAsync(const std::filesystem::path & path, ThreadPool& threadPool)
214{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected