MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / shouldStream

Function shouldStream

Source/Cache/AudioCache.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static bool shouldStream(String filename, size_t size) {
34 if (Path::getExt(filename) == "wav"sv) {
35 if (size >= DORA_STREAMING_AUDIO_FILE_SIZE) {
36 return true;
37 }
38 } else {
39 return true;
40 }
41 return false;
42}
43
44AudioFile* AudioCache::load(String filename) {
45 std::string fullPath = SharedContent.getFullPath(filename);

Callers 2

loadMethod · 0.85
loadAsyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected