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
Patch (16.61 KB, patch)
2021-05-18 01:13 PDT, youenn fablet
no flags
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
youenn fablet
Comment 3 2021-05-18 01:13:32 PDT
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
Note You need to log in before you can comment on or make changes to this bug.