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

Changeset 280722 in webkit


Ignore:
Timestamp:
Aug 6, 2021, 8:04:13 AM (5 years ago)
Author:
eric.carlson@apple.com
Message:
REGRESSION: ASSERTION FAILED: !DeprecatedGlobalSettings::shouldManageAudioSessionCategory()
AudioSession::sharedSession().category() == AudioSession::CategoryType::PlayAndRecord

https://bugs.webkit.org/show_bug.cgi?id=228847
<rdar://problem/81587101>

Reviewed by Jer Noble.

No new tests, fixes a crashing test.

  • UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:

(WebKit::UserMediaCaptureManagerProxy::SourceProxy::audioUnitWillStart): Restore.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r280706 r280722  
     12021-08-06  Eric Carlson  <eric.carlson@apple.com>
     2
     3        REGRESSION: ASSERTION FAILED: !DeprecatedGlobalSettings::shouldManageAudioSessionCategory() || AudioSession::sharedSession().category() == AudioSession::CategoryType::PlayAndRecord
     4        https://bugs.webkit.org/show_bug.cgi?id=228847
     5        <rdar://problem/81587101>
     6
     7        Reviewed by Jer Noble.
     8
     9        No new tests, fixes a crashing test.
     10
     11        * UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:
     12        (WebKit::UserMediaCaptureManagerProxy::SourceProxy::audioUnitWillStart): Restore.
     13
    1142021-08-05  Kate Cheney  <katherine_cheney@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp

    r280702 r280722  
    101101    int64_t numberOfFrames() { return m_numberOfFrames; }
    102102
     103    void audioUnitWillStart() final
     104    {
     105        AudioSession::sharedSession().setCategory(AudioSession::CategoryType::PlayAndRecord, RouteSharingPolicy::Default);
     106    }
     107
    103108    void start()
    104109    {
Note: See TracChangeset for help on using the changeset viewer.