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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |