summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/audio/HRTFDatabaseLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/audio/HRTFDatabaseLoader.h')
-rw-r--r--Source/WebCore/platform/audio/HRTFDatabaseLoader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/platform/audio/HRTFDatabaseLoader.h b/Source/WebCore/platform/audio/HRTFDatabaseLoader.h
index 72002c5..6dc02a6 100644
--- a/Source/WebCore/platform/audio/HRTFDatabaseLoader.h
+++ b/Source/WebCore/platform/audio/HRTFDatabaseLoader.h
@@ -46,11 +46,18 @@ public:
// Must be called from the main thread.
static PassRefPtr<HRTFDatabaseLoader> createAndLoadAsynchronouslyIfNecessary(double sampleRate);
+ // Returns the singleton HRTFDatabaseLoader.
+ static HRTFDatabaseLoader* loader() { return s_loader; }
+
// Both constructor and destructor must be called from the main thread.
~HRTFDatabaseLoader();
// Returns true once the default database has been completely loaded.
bool isLoaded() const;
+
+ // May not be called on the main thread.
+ // This is so a different background thread may synchronize with the loader thread.
+ void waitForLoaderThreadCompletion();
HRTFDatabase* database() { return m_hrtfDatabase.get(); }