Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b818b253da1d92e9e5f802dea4a735b8adeb1994
https://github.com/WebKit/WebKit/commit/b818b253da1d92e9e5f802dea4a735b8adeb1994
Author: Youenn Fablet <[email protected]>
Date: 2022-10-28 (Fri, 28 Oct 2022)
Changed paths:
M LayoutTests/fast/mediastream/mediastreamtrack-configurationchange.html
M Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp
M Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.h
M Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.h
M Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm
M Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp
Log Message:
-----------
"A MediaStreamTrack ended due to a capture failure" when selecting bluetooth
headphones as audio input device
https://bugs.webkit.org/show_bug.cgi?id=247119
rdar://problem/101628857
Reviewed by Eric Carlson.
Replace the boolean to update the sample buffer by a minimum buffer sample
frames, which is set when render fails.
This minimum buffer sample frames is used to compute a minimum buffer size when
setting up the audio unit.
Update Mock implementation to cover that case.
We do this by triggering this code path when
triggerMockMicrophoneConfigurationChange is called.
We also update the capture verification timer so that timer for mock unit is
reduced to 1 second.
Update LayoutTests/fast/mediastream/mediastreamtrack-configurationchange.html
to cover that case.
* LayoutTests/fast/mediastream/mediastreamtrack-configurationchange.html:
* Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp:
(WebCore::CoreAudioSharedUnit::configureMicrophoneProc):
(WebCore::CoreAudioSharedUnit::processMicrophoneSamples):
(WebCore::CoreAudioSharedUnit::startInternal):
(WebCore::CoreAudioSharedUnit::isProducingMicrophoneSamplesChanged):
* Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.h:
* Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.h:
* Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm:
(WebCore::MockAudioSharedUnit::singleton):
(WebCore::MockAudioSharedUnit::increaseBufferSize):
(WebCore::MockAudioSharedInternalUnit::emitSampleBuffers):
(WebCore::MockAudioSharedInternalUnit::render):
* Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp:
(WebCore::MockRealtimeMediaSourceCenter::triggerMockMicrophoneConfigurationChange):
Canonical link: https://commits.webkit.org/256091@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes