MCPcopy Create free account
hub / github.com/LabSound/LabSound / MakeHRTFLoaderSingleton

Method MakeHRTFLoaderSingleton

src/internal/src/HRTFPanner.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118HRTFDatabaseLoader* HRTFDatabaseLoader::s_loader;
119
120HRTFDatabaseLoader* HRTFDatabaseLoader::MakeHRTFLoaderSingleton(float sampleRate, const std::string & searchPath)
121{
122 if (!s_loader)
123 {
124 s_loader = new HRTFDatabaseLoader(sampleRate, searchPath);
125 s_loader->loadAsynchronously();
126 }
127 return s_loader;
128}
129
130HRTFDatabaseLoader::HRTFDatabaseLoader(float sampleRate, const std::string & searchPath)
131 : m_loading(false)

Callers

nothing calls this directly

Calls 1

loadAsynchronouslyMethod · 0.80

Tested by

no test coverage detected