From: commit-queue@webkit.org Date: Thu, 9 Feb 2012 04:34:38 +0000 (+0000) Subject: Fix the caculation of preDelayFrames in DynamicsCompressorKernel X-Git-Tag: 070512121124~13377 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f1de07a2d16680c73eafd1b02abe704798d3a5c;p=profile%2Fivi%2Fwebkit-efl.git Fix the caculation of preDelayFrames in DynamicsCompressorKernel https://bugs.webkit.org/show_bug.cgi?id=78057 Patch by Raymond Liu on 2012-02-08 Reviewed by Chris Rogers. No new tests required. * platform/audio/DynamicsCompressorKernel.cpp: (WebCore::DynamicsCompressorKernel::setPreDelayTime): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107172 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 3271eb4..2f58add 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,15 @@ +2012-02-08 Raymond Liu + + Fix the caculation of preDelayFrames in DynamicsCompressorKernel + https://bugs.webkit.org/show_bug.cgi?id=78057 + + Reviewed by Chris Rogers. + + No new tests required. + + * platform/audio/DynamicsCompressorKernel.cpp: + (WebCore::DynamicsCompressorKernel::setPreDelayTime): + 2012-02-08 Adam Klein DOM mutations should not be delivered on worker threads diff --git a/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp b/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp index a7a4c12..a322a33 100644 --- a/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp +++ b/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp @@ -69,7 +69,7 @@ DynamicsCompressorKernel::DynamicsCompressorKernel(float sampleRate) void DynamicsCompressorKernel::setPreDelayTime(float preDelayTime) { // Re-configure look-ahead section pre-delay if delay time has changed. - unsigned preDelayFrames = preDelayTime / sampleRate(); + unsigned preDelayFrames = preDelayTime * sampleRate(); if (preDelayFrames > MaxPreDelayFrames - 1) preDelayFrames = MaxPreDelayFrames - 1;