| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 46         return; | 46         return; | 
| 47 | 47 | 
| 48     m_buffer.allocate(bufferLengthForDelay(m_maxDelayTime, processor->sampleRate
    ())); | 48     m_buffer.allocate(bufferLengthForDelay(m_maxDelayTime, processor->sampleRate
    ())); | 
| 49     m_buffer.zero(); | 49     m_buffer.zero(); | 
| 50 | 50 | 
| 51     m_smoothingRate = AudioUtilities::discreteTimeConstantForSampleRate(Smoothin
    gTimeConstant, processor->sampleRate()); | 51     m_smoothingRate = AudioUtilities::discreteTimeConstantForSampleRate(Smoothin
    gTimeConstant, processor->sampleRate()); | 
| 52 } | 52 } | 
| 53 | 53 | 
| 54 bool DelayDSPKernel::hasSampleAccurateValues() | 54 bool DelayDSPKernel::hasSampleAccurateValues() | 
| 55 { | 55 { | 
| 56     return delayProcessor()->delayTime().hasSampleAccurateValues(); | 56     return getDelayProcessor()->delayTime().hasSampleAccurateValues(); | 
| 57 } | 57 } | 
| 58 | 58 | 
| 59 void DelayDSPKernel::calculateSampleAccurateValues(float* delayTimes, size_t fra
    mesToProcess) | 59 void DelayDSPKernel::calculateSampleAccurateValues(float* delayTimes, size_t fra
    mesToProcess) | 
| 60 { | 60 { | 
| 61     delayProcessor()->delayTime().calculateSampleAccurateValues(delayTimes, fram
    esToProcess); | 61     getDelayProcessor()->delayTime().calculateSampleAccurateValues(delayTimes, f
    ramesToProcess); | 
| 62 } | 62 } | 
| 63 | 63 | 
| 64 double DelayDSPKernel::delayTime(float) | 64 double DelayDSPKernel::delayTime(float) | 
| 65 { | 65 { | 
| 66     return delayProcessor()->delayTime().finalValue(); | 66     return getDelayProcessor()->delayTime().finalValue(); | 
| 67 } | 67 } | 
| 68 | 68 | 
| 69 } // namespace blink | 69 } // namespace blink | 
| 70 | 70 | 
| OLD | NEW | 
|---|