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

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

Issue 26913005: start/stop method for AudioBufferSourceNodes and OscillatorNodes can take no args. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove incorrect comment. Created 7 years, 2 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/AudioBufferSourceNode.h ('k') | Source/modules/webaudio/AudioBufferSourceNode.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioBufferSourceNode.cpp
diff --git a/Source/modules/webaudio/AudioBufferSourceNode.cpp b/Source/modules/webaudio/AudioBufferSourceNode.cpp
index 19aa3e6816aa3fe60e7acc8903a4862976a52c31..dccc704c0684d0d936d371de36a115401df741f6 100644
--- a/Source/modules/webaudio/AudioBufferSourceNode.cpp
+++ b/Source/modules/webaudio/AudioBufferSourceNode.cpp
@@ -372,13 +372,12 @@ unsigned AudioBufferSourceNode::numberOfChannels()
return output(0)->numberOfChannels();
}
-void AudioBufferSourceNode::startGrain(double when, double grainOffset)
+void AudioBufferSourceNode::start(double when)
{
- // Duration of 0 has special value, meaning calculate based on the entire buffer's duration.
- startGrain(when, grainOffset, 0);
+ AudioScheduledSourceNode::start(when);
Ken Russell (switch to Gerrit) 2013/10/14 22:54:05 Are you sure it's correct to delegate to AudioSche
Raymond Toy (Google) 2013/10/28 17:34:57 The diff is confusing. A plain start(when) is the
Ken Russell (switch to Gerrit) 2013/10/28 20:13:42 I understand this, but the new code's behavior is
}
-void AudioBufferSourceNode::startGrain(double when, double grainOffset, double grainDuration)
+void AudioBufferSourceNode::start(double when, double grainOffset, double grainDuration)
{
ASSERT(isMainThread());
@@ -418,7 +417,7 @@ void AudioBufferSourceNode::startGrain(double when, double grainOffset, double g
void AudioBufferSourceNode::noteGrainOn(double when, double grainOffset, double grainDuration)
{
- startGrain(when, grainOffset, grainDuration);
+ start(when, grainOffset, grainDuration);
}
double AudioBufferSourceNode::totalPitchRate()
« no previous file with comments | « Source/modules/webaudio/AudioBufferSourceNode.h ('k') | Source/modules/webaudio/AudioBufferSourceNode.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698