| 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 18 matching lines...) Expand all Loading... |
| 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/Allocator.h" | 34 #include "wtf/Allocator.h" |
| 35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
| 36 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 | 38 |
| 39 #if ENABLE(WEB_AUDIO) | |
| 40 | |
| 41 namespace blink { | 39 namespace blink { |
| 42 | 40 |
| 43 class PLATFORM_EXPORT DynamicsCompressorKernel { | 41 class PLATFORM_EXPORT DynamicsCompressorKernel { |
| 44 DISALLOW_NEW(); | 42 DISALLOW_NEW(); |
| 45 WTF_MAKE_NONCOPYABLE(DynamicsCompressorKernel); | 43 WTF_MAKE_NONCOPYABLE(DynamicsCompressorKernel); |
| 46 public: | 44 public: |
| 47 DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels); | 45 DynamicsCompressorKernel(float sampleRate, unsigned numberOfChannels); |
| 48 | 46 |
| 49 void setNumberOfChannels(unsigned); | 47 void setNumberOfChannels(unsigned); |
| 50 | 48 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 float m_kneeThreshold; | 123 float m_kneeThreshold; |
| 126 float m_kneeThresholdDb; | 124 float m_kneeThresholdDb; |
| 127 float m_ykneeThresholdDb; | 125 float m_ykneeThresholdDb; |
| 128 | 126 |
| 129 // Internal parameter for the knee portion of the curve. | 127 // Internal parameter for the knee portion of the curve. |
| 130 float m_K; | 128 float m_K; |
| 131 }; | 129 }; |
| 132 | 130 |
| 133 } // namespace blink | 131 } // namespace blink |
| 134 | 132 |
| 135 #endif // ENABLE(WEB_AUDIO) | |
| 136 | |
| 137 #endif // DynamicsCompressorKernel_h | 133 #endif // DynamicsCompressorKernel_h |
| OLD | NEW |