Open Bug 1662063 Opened 5 years ago Updated 5 years ago

Investigate why macbooks go into turbo boost when a page has an AudioContext running

Categories

(Core :: Audio/Video: MediaStreamGraph, defect, P3)

defect

Tracking

()

People

(Reporter: padenot, Unassigned)

Details

This seems to happen whenever we use an AudioContext.

Having a graph that plays a MediaStream doesn't cause this, same for playing an HTMLMediaElement without MediaStream.

Bumping the buffer size to 512 frames instead of the default of 128 seems to fix this.

Sound like implementing https://webaudio.github.io/web-audio-api/#enumdef-audiocontextlatencycategory just saw its priority increased.

Importantly, this doesn't seem to affect WebRTC calls, where we intentionally use a buffer size of 512: https://searchfox.org/mozilla-central/source/dom/media/GraphDriver.cpp#655-658

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.