Simplified discreteTimeConstantForSampleRate
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Mar 2012 22:30:23 +0000 (22:30 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Mar 2012 22:30:23 +0000 (22:30 +0000)
commit516e358fdb303230310247a940db10c509e78b38
tree28598a481ddb28d730f7b3caf7fa1bf896518eca
parent468bf84662de6e02fd964984d302a60d8c85a781
Simplified discreteTimeConstantForSampleRate
https://bugs.webkit.org/show_bug.cgi?id=78051

Remove hardcoded constant and simplify computation of discrete
time constant.

Patch by Raymond Toy <rtoy@google.com> on 2012-03-03
Reviewed by Chris Rogers.

No new tests needed.  Covered by existing AudioParam tests.

* platform/audio/AudioUtilities.cpp:
(WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
Simplify formula.
* platform/audio/AudioUtilities.h:
(AudioUtilities): Update function signature.
* platform/audio/DynamicsCompressorKernel.cpp:
(WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
cast to float to avoid warnings.
* webaudio/AudioParamTimeline.cpp:
(WebCore::AudioParamTimeline::valuesForTimeRangeImpl): cast to
float to avoid warnings.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/audio/AudioUtilities.cpp
Source/WebCore/platform/audio/AudioUtilities.h
Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp
Source/WebCore/webaudio/AudioParamTimeline.cpp