| 197 | } |
| 198 | |
| 199 | std::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 | |
| 213 | std::shared_ptr<AudioData const> AudioCache::LoadFromFileAsync(const std::filesystem::path & path, ThreadPool& threadPool) |
| 214 | { |
nothing calls this directly
no outgoing calls
no test coverage detected