OLD | NEW |
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 Loading... |
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 |
OLD | NEW |