WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
134877
[Mac] don't enable low power audio mode on external output devices
https://bugs.webkit.org/show_bug.cgi?id=134877
Summary
[Mac] don't enable low power audio mode on external output devices
Eric Carlson
Reported
2014-07-13 19:25:33 PDT
Firewire and other "high end" output devices behave poorly when asked to use a 4K output buffer. <
rdar://17443302
>
Attachments
Proposed patch
(2.90 MB, patch)
2014-07-13 20:50 PDT
,
Eric Carlson
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
(527.65 KB, application/zip)
2014-07-13 23:55 PDT
,
Build Bot
no flags
Details
This time with an actual patch
(29.72 KB, patch)
2014-07-14 10:21 PDT
,
Eric Carlson
sam
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2014-07-13 20:50:04 PDT
Created
attachment 234839
[details]
Proposed patch
WebKit Commit Bot
Comment 2
2014-07-13 20:51:34 PDT
Attachment 234839
[details]
did not pass style-queue: Total errors found: 0 in 0 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 3
2014-07-13 22:03:04 PDT
I think you may have just uploaded the ChangeLog. Like, all of it. :)
Build Bot
Comment 4
2014-07-13 23:55:41 PDT
Comment on
attachment 234839
[details]
Proposed patch
Attachment 234839
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/5076455193051136
New failing tests: media/W3C/video/networkState/networkState_during_loadstart.html
Build Bot
Comment 5
2014-07-13 23:55:43 PDT
Created
attachment 234842
[details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-11 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Eric Carlson
Comment 6
2014-07-14 10:21:12 PDT
Created
attachment 234862
[details]
This time with an actual patch
Jer Noble
Comment 7
2014-07-14 11:01:39 PDT
Comment on
attachment 234862
[details]
This time with an actual patch View in context:
https://bugs.webkit.org/attachment.cgi?id=234862&action=review
> Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp:60 > + > + size_t bufferSize; > + if (m_audioHardwareListener && m_audioHardwareListener->outputDeviceSupportsLowPowerMode()) > + bufferSize = kLowPowerVideoBufferSize; > + else > + bufferSize = kWebAudioBufferSize; > + > + AudioSession::sharedSession().setPreferredBufferSize(bufferSize);
I think this deserves a follow-up. The kWebAudioBufferSize value will be lower than the system default. That should be fine, as far as this bug is concerned, but we should add something later which retrieves the default size, or removes the property we set.
Eric Carlson
Comment 8
2014-07-14 11:04:10 PDT
(In reply to
comment #7
)
> (From update of
attachment 234862
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=234862&action=review
> > > Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp:60 > > + > > + size_t bufferSize; > > + if (m_audioHardwareListener && m_audioHardwareListener->outputDeviceSupportsLowPowerMode()) > > + bufferSize = kLowPowerVideoBufferSize; > > + else > > + bufferSize = kWebAudioBufferSize; > > + > > + AudioSession::sharedSession().setPreferredBufferSize(bufferSize); > > I think this deserves a follow-up. The kWebAudioBufferSize value will be lower than the system default. That should be fine, as far as this bug is concerned, but we should add something later which retrieves the default size, or removes the property we set.
Good point, I will file a bug to fix this in a follow-up.
WebKit Commit Bot
Comment 9
2014-07-14 11:05:39 PDT
Comment on
attachment 234862
[details]
This time with an actual patch Rejecting
attachment 234862
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 234862, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebKit2/ChangeLog contains OOPS!. Full output:
http://webkit-queues.appspot.com/results/6070414644084736
Eric Carlson
Comment 10
2014-07-14 11:18:23 PDT
Committed
r171069
: :
https://trac.webkit.org/r171069
Csaba Osztrogonác
Comment 11
2014-07-14 23:01:03 PDT
(In reply to
comment #10
)
> Committed
r171069
: :
https://trac.webkit.org/r171069
FYI: It broke the Apple Windows build.
Brent Fulgham
Comment 12
2014-07-15 14:18:43 PDT
Build fix committed: Committed
r171116
: :
https://trac.webkit.org/r171116
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug