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

Changeset 107172 in webkit


Ignore:
Timestamp:
Feb 8, 2012, 8:34:38 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

Fix the caculation of preDelayFrames in DynamicsCompressorKernel
https://bugs.webkit.org/show_bug.cgi?id=78057

Patch by Raymond Liu <raymond.liu@intel.com> on 2012-02-08
Reviewed by Chris Rogers.

No new tests required.

  • platform/audio/DynamicsCompressorKernel.cpp:

(WebCore::DynamicsCompressorKernel::setPreDelayTime):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107170 r107172  
     12012-02-08  Raymond Liu  <raymond.liu@intel.com>
     2
     3        Fix the caculation of preDelayFrames in DynamicsCompressorKernel
     4        https://bugs.webkit.org/show_bug.cgi?id=78057
     5
     6        Reviewed by Chris Rogers.
     7
     8        No new tests required.
     9
     10        * platform/audio/DynamicsCompressorKernel.cpp:
     11        (WebCore::DynamicsCompressorKernel::setPreDelayTime):
     12
    1132012-02-08  Adam Klein  <adamk@chromium.org>
    214
  • trunk/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp

    r105431 r107172  
    7070{
    7171    // Re-configure look-ahead section pre-delay if delay time has changed.
    72     unsigned preDelayFrames = preDelayTime / sampleRate();
     72    unsigned preDelayFrames = preDelayTime * sampleRate();
    7373    if (preDelayFrames > MaxPreDelayFrames - 1)
    7474        preDelayFrames = MaxPreDelayFrames - 1;
Note: See TracChangeset for help on using the changeset viewer.