Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Audio pitch changes on enabling / disabling the mic capture
https://bugs.webkit.org/show_bug.cgi?id=243651 rdar://problem/98655838 Reviewed by Eric Carlson. When starting microphone capture, we stop the track remote IO unit and use the VPIO unit. Previously we were stopping the remote IO unit when asking the VPIO unit to start. The VPIO unit may take some time to start and audio to be rendered will start to be buffered. We are getting rid of this buffering by speeding up a bit playback, leading to higher pitch. To prevent this buffering, we are no longer stopping the remote IO unit when starting the VPIO unit. Instead, we wait for the first speaker callback to ask the remote IO unit to stop after hopping to main thread. * Source/WebCore/platform/mediastream/mac/BaseAudioSharedUnit.h: * Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.cpp: (WebCore::CoreAudioSharedUnit::provideSpeakerData): (WebCore::CoreAudioSharedUnit::startInternal): * Source/WebCore/platform/mediastream/mac/CoreAudioSharedUnit.h: Canonical link: https://commits.webkit.org/253673@main
- Loading branch information
Showing
3 changed files
with
18 additions
and
7 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