RESOLVED FIXED219975
[macOS] Use low-power audio buffer sizes for more output devices
https://bugs.webkit.org/show_bug.cgi?id=219975
Summary [macOS] Use low-power audio buffer sizes for more output devices
Jer Noble
Reported 2020-12-16 21:38:52 PST
[macOS] Use low-power audio buffer sizes for more output devices
Attachments
Patch (8.44 KB, patch)
2020-12-16 22:04 PST, Jer Noble
ews-feeder: commit-queue-
Patch (8.43 KB, patch)
2020-12-16 22:28 PST, Jer Noble
eric.carlson: review+
Patch for landing (8.41 KB, patch)
2020-12-17 11:30 PST, Jer Noble
no flags
Jer Noble
Comment 1 2020-12-16 21:39:25 PST
Jer Noble
Comment 2 2020-12-16 22:04:45 PST
Jer Noble
Comment 3 2020-12-16 22:28:40 PST
Eric Carlson
Comment 4 2020-12-17 06:23:04 PST
Comment on attachment 416392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416392&action=review > Source/WebCore/platform/audio/AudioHardwareListener.cpp:42 > + m_supportedBufferSizes = { 32, 4096 }; Can you initialize this in the header? > Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp:72 > + return { 0, 0 }; Wouldn't `return { }` do the same? > Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp:84 > + return { 0, 0 }; Ditto.
Jer Noble
Comment 5 2020-12-17 10:36:09 PST
(In reply to Eric Carlson from comment #4) > Comment on attachment 416392 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=416392&action=review > > > Source/WebCore/platform/audio/AudioHardwareListener.cpp:42 > > + m_supportedBufferSizes = { 32, 4096 }; > > Can you initialize this in the header? I didn't really want to put a conditional variable initializer in the header. > > Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp:72 > > + return { 0, 0 }; > > Wouldn't `return { }` do the same? Probably! > > Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.cpp:84 > > + return { 0, 0 }; > > Ditto.
Jer Noble
Comment 6 2020-12-17 11:30:34 PST
Created attachment 416441 [details] Patch for landing
EWS
Comment 7 2020-12-17 13:33:38 PST
Committed r270943: <https://trac.webkit.org/changeset/270943> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416441 [details].
Note You need to log in before you can comment on or make changes to this bug.