RESOLVED FIXED 235362
AVAudioSessionCaptureDeviceManager is not always computing the right default input device
https://bugs.webkit.org/show_bug.cgi?id=235362
Summary AVAudioSessionCaptureDeviceManager is not always computing the right default ...
youenn fablet
Reported 2022-01-19 06:23:21 PST
AVAudioSessionCaptureDeviceManager is not always computing the right default input device
Attachments
Patch (3.40 KB, patch)
2022-01-19 06:31 PST, youenn fablet
no flags
Patch (1.98 KB, patch)
2022-01-24 07:31 PST, youenn fablet
no flags
youenn fablet
Comment 1 2022-01-19 06:25:23 PST
youenn fablet
Comment 2 2022-01-19 06:31:07 PST
Darin Adler
Comment 3 2022-01-19 10:07:37 PST
Comment on attachment 449479 [details] Patch What is our testing strategy for these kinds of things? I worry that we could easily break this and would not notice.
youenn fablet
Comment 4 2022-01-19 23:52:52 PST
(In reply to Darin Adler from comment #3) > Comment on attachment 449479 [details] > Patch > > What is our testing strategy for these kinds of things? I worry that we > could easily break this and would not notice. This whole area sadly resorts on manual testing. It would be nice to automate more this area but this requires efforts outside WebKit. I guess I can add some some manual test pages to help validating non regressions easily.
EWS
Comment 5 2022-01-20 00:37:36 PST
Committed r288275 (246213@main): <https://commits.webkit.org/246213@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449479 [details].
Geoffrey Garen
Comment 6 2022-01-21 09:00:58 PST
Comment on attachment 449479 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449479&action=review > Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:243 > + RELEASE_LOG_INFO(WebRTC, "AVAudioSessionCaptureDeviceManager using previous default input"); Isn't it the other side of the if branch that uses m_lastDefaultMicrophone as defaultInput?
Geoffrey Garen
Comment 7 2022-01-21 09:01:41 PST
Can we at least verify WebKit's internal behavior through mocking? That wouldn't prove that the mic actually worked, but it would prove that our code did what we thought it would.
youenn fablet
Comment 8 2022-01-24 07:22:30 PST
Comment on attachment 449479 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449479&action=review >> Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:243 >> + RELEASE_LOG_INFO(WebRTC, "AVAudioSessionCaptureDeviceManager using previous default input"); > > Isn't it the other side of the if branch that uses m_lastDefaultMicrophone as defaultInput? Right, will fix it.
youenn fablet
Comment 9 2022-01-24 07:23:37 PST
(In reply to Geoffrey Garen from comment #7) > Can we at least verify WebKit's internal behavior through mocking? That > wouldn't prove that the mic actually worked, but it would prove that our > code did what we thought it would. AVAudioSessionCaptureDeviceManager is not mocked at all like CoreAudioSharedUnit is. But we should probably try to do so. I'll think more about it.
youenn fablet
Comment 10 2022-01-24 07:31:16 PST
Reopening to attach new patch.
youenn fablet
Comment 11 2022-01-24 07:31:20 PST
EWS
Comment 12 2022-01-24 08:05:00 PST
Committed r288441 (246330@main): <https://commits.webkit.org/246330@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449812 [details].
Note You need to log in before you can comment on or make changes to this bug.