AudioParam must support k-rate processing with audio-rate connections
authorcrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Aug 2012 00:42:26 +0000 (00:42 +0000)
committercrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Aug 2012 00:42:26 +0000 (00:42 +0000)
commit8586189ce0842e569ef591a6a4f9ad06dc97ae63
tree8c6191d28ecc786ae0a7bb941799039fc2dcd6c0
parent0f2cf1221a198b81a52040201320c53a4fb94e77
AudioParam must support k-rate processing with audio-rate connections
https://bugs.webkit.org/show_bug.cgi?id=94385

Reviewed by Kenneth Russell.

Fully implement AudioParam *final* value calculation according to spec:
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioParam

In particular, this covers the case where the parameter is k-rate, and we also
have audio-rate connections to the AudioParam.

* Modules/webaudio/AudioParam.cpp:
(WebCore::AudioParam::finalValue):
(WebCore):
(WebCore::AudioParam::calculateSampleAccurateValues):
(WebCore::AudioParam::calculateFinalValues):
* Modules/webaudio/AudioParam.h:
(AudioParam):
* Modules/webaudio/DelayDSPKernel.cpp:
(WebCore::DelayDSPKernel::process):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125957 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/webaudio/AudioParam.cpp
Source/WebCore/Modules/webaudio/AudioParam.h
Source/WebCore/Modules/webaudio/DelayDSPKernel.cpp