WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
225785
Clean up UserMediaCaptureManagerProxy.cpp
https://bugs.webkit.org/show_bug.cgi?id=225785
Summary
Clean up UserMediaCaptureManagerProxy.cpp
Peng Liu
Reported
2021-05-13 16:08:19 PDT
In UserMediaCaptureManagerProxy.cpp void audioUnitWillStart() final { // FIXME: WebProcess might want to set the category/bufferSize itself, in which case we should remove that code. auto bufferSize = AudioSession::sharedSession().sampleRate() / 50; if (AudioSession::sharedSession().preferredBufferSize() > bufferSize) AudioSession::sharedSession().setPreferredBufferSize(bufferSize); AudioSession::sharedSession().setCategory(AudioSession::PlayAndRecord, RouteSharingPolicy::Default); } Probably we need to remove this code section now?
Attachments
Patch
(11.22 KB, patch)
2021-05-17 08:05 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(16.61 KB, patch)
2021-05-18 01:13 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Peng Liu
Comment 1
2021-05-13 16:09:15 PDT
Assign to Youenn to take a look. :-)
youenn fablet
Comment 2
2021-05-17 08:05:28 PDT
Created
attachment 428828
[details]
Patch
youenn fablet
Comment 3
2021-05-18 01:13:32 PDT
Created
attachment 428918
[details]
Patch
youenn fablet
Comment 4
2021-05-18 01:56:08 PDT
Hum, in case of GPUProcess crash, we would need to ensure the audio session category is set before restarting audio capture. There is no such guarantee right now.
Radar WebKit Bug Importer
Comment 5
2021-05-20 16:09:20 PDT
<
rdar://problem/78282244
>
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