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

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

Issue 637653002: Looping one-sample AudioBufferSourceNode should work. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « LayoutTests/webaudio/audiobuffersource-one-sample-loop-expected.txt ('k') | no next file » | 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 3e5cf818df9d06b3eeb86a1d45f98d7065605970..c47dcd5039818685982762aee2ac3e5d50e22332 100644
--- a/Source/modules/webaudio/AudioBufferSourceNode.cpp
+++ b/Source/modules/webaudio/AudioBufferSourceNode.cpp
@@ -236,7 +236,7 @@ bool AudioBufferSourceNode::renderFromBuffer(AudioBus* bus, unsigned destination
double pitchRate = totalPitchRate();
// Sanity check that our playback rate isn't larger than the loop size.
- if (pitchRate >= virtualDeltaFrames)
+ if (pitchRate > virtualDeltaFrames)
return false;
// Get local copy.
« no previous file with comments | « LayoutTests/webaudio/audiobuffersource-one-sample-loop-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698