Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"A MediaStreamTrack ended due to a capture failure" when selecting bl…
…uetooth 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
- Loading branch information
Showing
6 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters