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

Changeset 268841 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 3:38:09 PM (6 years ago)
Author:
Chris Dumez
Message:

Address post-landing review feedback from Sam Weinig for r268820.

  • Modules/webaudio/AudioSummingJunction.cpp:

(WebCore::AudioSummingJunction::maximumNumberOfChannels const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268826 r268841  
     12020-10-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Address post-landing review feedback from Sam Weinig for r268820.
     4
     5        * Modules/webaudio/AudioSummingJunction.cpp:
     6        (WebCore::AudioSummingJunction::maximumNumberOfChannels const):
     7
    182020-10-21  Chris Dumez  <cdumez@apple.com>
    29
  • trunk/Source/WebCore/Modules/webaudio/AudioSummingJunction.cpp

    r268820 r268841  
    9595{
    9696    unsigned maxChannels = 0;
    97     std::for_each(m_outputs.begin(), m_outputs.end(), [&](auto* output) {
     97    for (auto* output : m_outputs) {
    9898        // Use output()->numberOfChannels() instead of output->bus()->numberOfChannels(),
    9999        // because the calling of AudioNodeOutput::bus() is not safe here.
    100100        maxChannels = std::max(maxChannels, output->numberOfChannels());
    101     });
     101    }
    102102    return maxChannels;
    103103}
Note: See TracChangeset for help on using the changeset viewer.