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

Side by Side Diff: third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 *destination++ = static_cast<float>(output); 157 *destination++ = static_cast<float>(output);
158 } 158 }
159 } 159 }
160 160
161 void AudioDelayDSPKernel::Reset() { 161 void AudioDelayDSPKernel::Reset() {
162 first_time_ = true; 162 first_time_ = true;
163 buffer_.Zero(); 163 buffer_.Zero();
164 } 164 }
165 165
166 bool AudioDelayDSPKernel::RequiresTailProcessing() const {
167 // Always return true even if the tail time and latency might both
168 // be zero.
169 return true;
170 }
171
166 double AudioDelayDSPKernel::TailTime() const { 172 double AudioDelayDSPKernel::TailTime() const {
167 // Account for worst case delay. 173 // Account for worst case delay.
168 // Don't try to track actual delay time which can change dynamically. 174 // Don't try to track actual delay time which can change dynamically.
169 return max_delay_time_; 175 return max_delay_time_;
170 } 176 }
171 177
172 double AudioDelayDSPKernel::LatencyTime() const { 178 double AudioDelayDSPKernel::LatencyTime() const {
173 return 0; 179 return 0;
174 } 180 }
175 181
176 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698