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

Method loadHrtfDatabase

src/core/AudioContext.cpp:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199bool AudioContext::loadHrtfDatabase(const std::string & searchPath)
200{
201 auto db = new HRTFDatabaseLoader(sampleRate(), searchPath);
202 m_internal->hrtfDatabaseLoader.reset(db);
203 db->loadAsynchronously();
204 db->waitForLoaderThreadCompletion();
205 return db->database()->numberOfElevations() > 0 && db->database()->numberOfAzimuths() > 0;
206}
207
208std::shared_ptr<HRTFDatabaseLoader> AudioContext::hrtfDatabaseLoader() const {
209 return m_internal->hrtfDatabaseLoader;

Callers 1

playMethod · 0.80

Calls 6

loadAsynchronouslyMethod · 0.80
numberOfElevationsMethod · 0.80
databaseMethod · 0.80
resetMethod · 0.45
numberOfAzimuthsMethod · 0.45

Tested by

no test coverage detected