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

Side by Side Diff: chrome/test/data/third_party/kraken/tests/kraken-1.1/audio-oscillator.js

Issue 11348021: Automate Kraken benchmark with Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 var iterations = 500;
2
3 var bufferSize = 8192;
4 var sampleRate = 44100.0;
5 var nthHarmonic = 5;
6 var frequency = 344.53;
7 var sine = new Oscillator(Oscillator.Sine, frequency, 1, bufferSize, sampleRate) ;
8
9 var calcOsc = function() {
10 sine.generate();
11 harmonic = new Oscillator(Oscillator.Sine, frequency*nthHarmonic, 1/nthHarmoni c, bufferSize, sampleRate);
12 harmonic.generate();
13 sine.add(harmonic);
14 };
15
16 runTest(calcOsc, iterations);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698