Changeset 117541 in webkit


Ignore:
Timestamp:
May 17, 2012 9:57:07 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

AudioBufferSourceNode and MediaElementAudioSourceNode should support multi-channel > stereo
https://bugs.webkit.org/show_bug.cgi?id=75119

Patch by Wei James <james.wei@intel.com> on 2012-05-17
Reviewed by Chris Rogers.

As multiple channel support in AudioBus and other places is already
implemented, the check can be removed here.

  • Modules/webaudio/MediaElementAudioSourceNode.cpp:

(WebCore::MediaElementAudioSourceNode::setFormat):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117537 r117541  
     12012-05-17  Wei James  <james.wei@intel.com>
     2
     3        AudioBufferSourceNode and MediaElementAudioSourceNode should support multi-channel > stereo
     4        https://bugs.webkit.org/show_bug.cgi?id=75119
     5
     6        Reviewed by Chris Rogers.
     7
     8        As multiple channel support in AudioBus and other places is already
     9        implemented, the check can be removed here. 
     10
     11        * Modules/webaudio/MediaElementAudioSourceNode.cpp:
     12        (WebCore::MediaElementAudioSourceNode::setFormat):
     13
    1142012-05-17  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp

    r113245 r117541  
    6969{
    7070    if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != m_sourceSampleRate) {
    71         // FIXME: implement multi-channel greater than stereo.
    72         // https://bugs.webkit.org/show_bug.cgi?id=75119
    73         if (!numberOfChannels || numberOfChannels > 2 || sourceSampleRate < minSampleRate || sourceSampleRate > maxSampleRate) {
     71        if (!numberOfChannels || numberOfChannels > AudioContext::maxNumberOfChannels() || sourceSampleRate < minSampleRate || sourceSampleRate > maxSampleRate) {
    7472            // process() will generate silence for these uninitialized values.
    7573            LOG(Media, "MediaElementAudioSourceNode::setFormat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampleRate);
Note: See TracChangeset for help on using the changeset viewer.