Open Bug 932602 Opened 11 years ago Updated 2 years ago

Investigate using power saving hints in OS X libcubeb backends (TN2321)

Categories

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

defect

Tracking

()

People

(Reporter: kinetik, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: power)

OS X 10.9 (Mavericks) introduced a hint (kAudioHardwarePowerHintFavorSavingPower) to opt-in to power savings in the CoreAudio stack. It may be that we already get most of the benefit by setting the I/O buffer size to a large value when creating a high latency stream. The hint is a global property, so we need to have explicit logic to set and unset it depending on what streams are active, i.e. we'd want kAudioHardwarePowerHintFavorSavingPower only when high latency streams are playing, and kAudioHardwarePowerHintNone if any low latency streams are active (this probably also applies to the existing logic to set the I/O buffer size, as I think a later high latency stream will clobber the setup for an existing low latency stream otherwise).
Blocks: 930586
I think it's better for this bug to block the general Mavericks compatibility bug. Bug 930586 frankly doesn't have much content (though it took me a while to realize that).
Blocks: mavericks-compat
No longer blocks: 930586
Component: Audio/Video → Audio/Video: MSG/cubeb/GMP
Component: Audio/Video: MediaStreamGraph → Audio/Video: cubeb
Rank: 25
Priority: -- → P2
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.