| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #ifndef DynamicsCompressorKernel_h | 29 #ifndef DynamicsCompressorKernel_h |
| 30 #define DynamicsCompressorKernel_h | 30 #define DynamicsCompressorKernel_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/audio/AudioArray.h" | 33 #include "platform/audio/AudioArray.h" |
| 34 #include "wtf/Noncopyable.h" | 34 #include "wtf/Noncopyable.h" |
| 35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace blink { |
| 39 | 39 |
| 40 class PLATFORM_EXPORT DynamicsCompressorKernel { | 40 class PLATFORM_EXPORT DynamicsCompressorKernel { |
| 41 WTF_MAKE_NONCOPYABLE(DynamicsCompressorKernel); | 41 WTF_MAKE_NONCOPYABLE(DynamicsCompressorKernel); |
| 42 public: | 42 public: |
| 43 DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels); | 43 DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels); |
| 44 | 44 |
| 45 void setNumberOfChannels(unsigned); | 45 void setNumberOfChannels(unsigned); |
| 46 | 46 |
| 47 // Performs stereo-linked compression. | 47 // Performs stereo-linked compression. |
| 48 void process(const float* sourceChannels[], | 48 void process(const float* sourceChannels[], |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // which transitions smoothly from the linear portion to the ratio portion. | 119 // which transitions smoothly from the linear portion to the ratio portion. |
| 120 float m_dbKnee; | 120 float m_dbKnee; |
| 121 float m_kneeThreshold; | 121 float m_kneeThreshold; |
| 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 WebCore | 129 } // namespace blink |
| 130 | 130 |
| 131 #endif // DynamicsCompressorKernel_h | 131 #endif // DynamicsCompressorKernel_h |
| OLD | NEW |