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

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

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 gain = GetBiquadProcessor()->Parameter3().Value(); 201 gain = GetBiquadProcessor()->Parameter3().Value();
202 detune = GetBiquadProcessor()->Parameter4().Value(); 202 detune = GetBiquadProcessor()->Parameter4().Value();
203 } 203 }
204 204
205 UpdateCoefficients(1, &cutoff_frequency, &q, &gain, &detune); 205 UpdateCoefficients(1, &cutoff_frequency, &q, &gain, &detune);
206 206
207 biquad_.GetFrequencyResponse(n_frequencies, frequency.data(), mag_response, 207 biquad_.GetFrequencyResponse(n_frequencies, frequency.data(), mag_response,
208 phase_response); 208 phase_response);
209 } 209 }
210 210
211 bool BiquadDSPKernel::RequiresTailProcessing() const {
212 // Always return true even if the tail time and latency might both
213 // be zero.
214 return true;
215 }
216
211 double BiquadDSPKernel::TailTime() const { 217 double BiquadDSPKernel::TailTime() const {
212 return tail_time_; 218 return tail_time_;
213 } 219 }
214 220
215 double BiquadDSPKernel::LatencyTime() const { 221 double BiquadDSPKernel::LatencyTime() const {
216 return 0; 222 return 0;
217 } 223 }
218 224
219 } // namespace blink 225 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698