summaryrefslogtreecommitdiff
path: root/dom/media/GraphDriver.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/GraphDriver.h')
-rw-r--r--dom/media/GraphDriver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/media/GraphDriver.h b/dom/media/GraphDriver.h
index f2a514b328..bb4f2689b8 100644
--- a/dom/media/GraphDriver.h
+++ b/dom/media/GraphDriver.h
@@ -457,6 +457,11 @@ public:
void CompleteAudioContextOperations(AsyncCubebOperation aOperation);
private:
/**
+ * On certain MacBookPro, the microphone is located near the left speaker.
+ * We need to pan the sound output to the right speaker if we are using the
+ * mic and the built-in speaker, or we will have terrible echo. */
+ void PanOutputIfNeeded(bool aMicrophoneActive);
+ /**
* This is called when the output device used by the cubeb stream changes. */
void DeviceChangedCallback();
/* Start the cubeb stream */