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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp

Issue 2420983002: AudioParams with automations must process timelines (Closed)
Patch Set: Fix paths. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void DelayDSPKernel::calculateSampleAccurateValues(float* delayTimes, 60 void DelayDSPKernel::calculateSampleAccurateValues(float* delayTimes,
61 size_t framesToProcess) { 61 size_t framesToProcess) {
62 getDelayProcessor()->delayTime().calculateSampleAccurateValues( 62 getDelayProcessor()->delayTime().calculateSampleAccurateValues(
63 delayTimes, framesToProcess); 63 delayTimes, framesToProcess);
64 } 64 }
65 65
66 double DelayDSPKernel::delayTime(float) { 66 double DelayDSPKernel::delayTime(float) {
67 return getDelayProcessor()->delayTime().finalValue(); 67 return getDelayProcessor()->delayTime().finalValue();
68 } 68 }
69 69
70 void DelayDSPKernel::processOnlyAudioParams(size_t framesToProcess) {
71 DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames);
72
73 float values[AudioUtilities::kRenderQuantumFrames];
74
75 getDelayProcessor()->delayTime().calculateSampleAccurateValues(
76 values, framesToProcess);
77 }
78
70 } // namespace blink 79 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.h ('k') | third_party/WebKit/Source/modules/webaudio/DelayNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698