| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2011 Google Inc. All rights reserved. |    2  * Copyright (C) 2011 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  * |    7  * | 
|    8  * 1.  Redistributions of source code must retain the above copyright |    8  * 1.  Redistributions of source code must retain the above copyright | 
|    9  *     notice, this list of conditions and the following disclaimer. |    9  *     notice, this list of conditions and the following disclaimer. | 
|   10  * 2.  Redistributions in binary form must reproduce the above copyright |   10  * 2.  Redistributions in binary form must reproduce the above copyright | 
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   83     float m_meteringReleaseK; |   83     float m_meteringReleaseK; | 
|   84     float m_meteringGain; |   84     float m_meteringGain; | 
|   85  |   85  | 
|   86     // Lookahead section. |   86     // Lookahead section. | 
|   87     enum { MaxPreDelayFrames = 1024 }; |   87     enum { MaxPreDelayFrames = 1024 }; | 
|   88     enum { MaxPreDelayFramesMask = MaxPreDelayFrames - 1 }; |   88     enum { MaxPreDelayFramesMask = MaxPreDelayFrames - 1 }; | 
|   89     enum { DefaultPreDelayFrames = 256 }; // setPreDelayTime() will override thi
     s initial value |   89     enum { DefaultPreDelayFrames = 256 }; // setPreDelayTime() will override thi
     s initial value | 
|   90     unsigned m_lastPreDelayFrames; |   90     unsigned m_lastPreDelayFrames; | 
|   91     void setPreDelayTime(float); |   91     void setPreDelayTime(float); | 
|   92  |   92  | 
|   93     Vector<OwnPtr<AudioFloatArray> > m_preDelayBuffers; |   93     Vector<OwnPtr<AudioFloatArray>> m_preDelayBuffers; | 
|   94     int m_preDelayReadIndex; |   94     int m_preDelayReadIndex; | 
|   95     int m_preDelayWriteIndex; |   95     int m_preDelayWriteIndex; | 
|   96  |   96  | 
|   97     float m_maxAttackCompressionDiffDb; |   97     float m_maxAttackCompressionDiffDb; | 
|   98  |   98  | 
|   99     // Static compression curve. |   99     // Static compression curve. | 
|  100     float kneeCurve(float x, float k); |  100     float kneeCurve(float x, float k); | 
|  101     float saturate(float x, float k); |  101     float saturate(float x, float k); | 
|  102     float slopeAt(float x, float k); |  102     float slopeAt(float x, float k); | 
|  103     float kAtSlope(float desiredSlope); |  103     float kAtSlope(float desiredSlope); | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
|  122     float m_kneeThresholdDb; |  122     float m_kneeThresholdDb; | 
|  123     float m_ykneeThresholdDb; |  123     float m_ykneeThresholdDb; | 
|  124  |  124  | 
|  125     // Internal parameter for the knee portion of the curve. |  125     // Internal parameter for the knee portion of the curve. | 
|  126     float m_K; |  126     float m_K; | 
|  127 }; |  127 }; | 
|  128  |  128  | 
|  129 } // namespace blink |  129 } // namespace blink | 
|  130  |  130  | 
|  131 #endif // DynamicsCompressorKernel_h |  131 #endif // DynamicsCompressorKernel_h | 
| OLD | NEW |