Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: Source/modules/webaudio/AudioParam.cpp

Issue 1017983003: Web Audio: Rename AudioParam class to AudioParamHandler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioParam.h ('k') | Source/modules/webaudio/BiquadFilterNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.cpp
diff --git a/Source/modules/webaudio/AudioParam.cpp b/Source/modules/webaudio/AudioParam.cpp
index 97321de0cd7f70d4f669ac37b272ee3ae089b579..01ee0233e699e47de1f2ec632969a6b9cf4b5977 100644
--- a/Source/modules/webaudio/AudioParam.cpp
+++ b/Source/modules/webaudio/AudioParam.cpp
@@ -35,10 +35,10 @@
namespace blink {
-const double AudioParam::DefaultSmoothingConstant = 0.05;
-const double AudioParam::SnapThreshold = 0.001;
+const double AudioParamHandler::DefaultSmoothingConstant = 0.05;
+const double AudioParamHandler::SnapThreshold = 0.001;
-float AudioParam::value()
+float AudioParamHandler::value()
{
// Update value for timeline.
if (context() && context()->isAudioThread()) {
@@ -52,17 +52,17 @@ float AudioParam::value()
return narrowPrecisionToFloat(m_value);
}
-void AudioParam::setValue(float value)
+void AudioParamHandler::setValue(float value)
{
m_value = value;
}
-float AudioParam::smoothedValue()
+float AudioParamHandler::smoothedValue()
{
return narrowPrecisionToFloat(m_smoothedValue);
}
-bool AudioParam::smooth()
+bool AudioParamHandler::smooth()
{
// If values have been explicitly scheduled on the timeline, then use the exact value.
// Smoothing effectively is performed by the timeline.
@@ -91,14 +91,14 @@ bool AudioParam::smooth()
return false;
}
-float AudioParam::finalValue()
+float AudioParamHandler::finalValue()
{
float value = m_value;
calculateFinalValues(&value, 1, false);
return value;
}
-void AudioParam::calculateSampleAccurateValues(float* values, unsigned numberOfValues)
+void AudioParamHandler::calculateSampleAccurateValues(float* values, unsigned numberOfValues)
{
bool isSafe = context() && context()->isAudioThread() && values && numberOfValues;
ASSERT(isSafe);
@@ -108,7 +108,7 @@ void AudioParam::calculateSampleAccurateValues(float* values, unsigned numberOfV
calculateFinalValues(values, numberOfValues, true);
}
-void AudioParam::calculateFinalValues(float* values, unsigned numberOfValues, bool sampleAccurate)
+void AudioParamHandler::calculateFinalValues(float* values, unsigned numberOfValues, bool sampleAccurate)
{
bool isGood = context() && context()->isAudioThread() && values && numberOfValues;
ASSERT(isGood);
@@ -148,7 +148,7 @@ void AudioParam::calculateFinalValues(float* values, unsigned numberOfValues, bo
}
}
-void AudioParam::calculateTimelineValues(float* values, unsigned numberOfValues)
+void AudioParamHandler::calculateTimelineValues(float* values, unsigned numberOfValues)
{
// Calculate values for this render quantum.
// Normally numberOfValues will equal AudioNode::ProcessingSizeInFrames (the render quantum size).
@@ -161,7 +161,7 @@ void AudioParam::calculateTimelineValues(float* values, unsigned numberOfValues)
m_value = m_timeline.valuesForTimeRange(startTime, endTime, narrowPrecisionToFloat(m_value), values, numberOfValues, sampleRate, sampleRate);
}
-void AudioParam::connect(AudioNodeOutput& output)
+void AudioParamHandler::connect(AudioNodeOutput& output)
{
ASSERT(context()->isGraphOwner());
@@ -173,7 +173,7 @@ void AudioParam::connect(AudioNodeOutput& output)
changedOutputs();
}
-void AudioParam::disconnect(AudioNodeOutput& output)
+void AudioParamHandler::disconnect(AudioNodeOutput& output)
{
ASSERT(context()->isGraphOwner());
« no previous file with comments | « Source/modules/webaudio/AudioParam.h ('k') | Source/modules/webaudio/BiquadFilterNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698