⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294841 in webkit


Ignore:
Timestamp:
May 25, 2022, 4:49:44 PM (4 years ago)
Author:
Alan Coon
Message:

Cherry-pick r293827. rdar://problem/92624773

replaceTrack with different constraints stops sending packets
​https://bugs.webkit.org/show_bug.cgi?id=239978
<rdar://problem/92624773>

Reviewed by Eric Carlson.

We should always reconfigure the microphone processor even if we are not using it,
as VPIO expects that input and output formats should match.

Manually tested with ​https://bugs.webkit.org/show_bug.cgi?id=239978 and ​https://jsfiddle.net/72qsLw9a/.
A follow-up should allow to put more common code between CoreAudioSharedUnit and MockAudioSharedUnit
so that we can write a regression test.

  • platform/mediastream/mac/CoreAudioCaptureSource.cpp:

Canonical link: ​https://commits.webkit.org/250300@main
git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@293827 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613-branch/Source/WebCore/ChangeLog

    r294840 r294841  
     12022-05-19  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r293827. rdar://problem/92624773
     4
     5    replaceTrack with different constraints stops sending packets
     6    https://bugs.webkit.org/show_bug.cgi?id=239978
     7    <rdar://problem/92624773>
     8   
     9    Reviewed by Eric Carlson.
     10   
     11    We should always reconfigure the microphone processor even if we are not using it,
     12    as VPIO expects that input and output formats should match.
     13   
     14    Manually tested with https://bugs.webkit.org/show_bug.cgi?id=239978 and https://jsfiddle.net/72qsLw9a/.
     15    A follow-up should allow to put more common code between CoreAudioSharedUnit and MockAudioSharedUnit
     16    so that we can write a regression test.
     17   
     18    * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     19   
     20    Canonical link: https://commits.webkit.org/250300@main
     21    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     22
     23    2022-05-05  Youenn Fablet  <youenn@apple.com>
     24
     25            replaceTrack with different constraints stops sending packets
     26            https://bugs.webkit.org/show_bug.cgi?id=239978
     27            <rdar://problem/92624773>
     28
     29            Reviewed by Eric Carlson.
     30
     31            We should always reconfigure the microphone processor even if we are not using it,
     32            as VPIO expects that input and output formats should match.
     33
     34            Manually tested with https://bugs.webkit.org/show_bug.cgi?id=239978 and https://jsfiddle.net/72qsLw9a/.
     35            A follow-up should allow to put more common code between CoreAudioSharedUnit and MockAudioSharedUnit
     36            so that we can write a regression test.
     37
     38            * platform/mediastream/mac/CoreAudioCaptureSource.cpp:
     39
    1402022-05-19  Alan Coon  <alancoon@apple.com>
    241
  • branches/safari-613-branch/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.cpp

    r294839 r294841  
    299299    ASSERT(isMainThread());
    300300
    301     if (!isProducingMicrophoneSamples())
    302         return noErr;
    303 
    304301    AURenderCallbackStruct callback = { microphoneCallback, this };
    305302    auto err = PAL::AudioUnitSetProperty(m_ioUnit, kAudioOutputUnitProperty_SetInputCallback, kAudioUnitScope_Global, inputBus, &callback, sizeof(callback));
Note: See TracChangeset for help on using the changeset viewer.