Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: Source/platform/audio/DynamicsCompressorKernel.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/audio/DynamicsCompressor.cpp ('k') | Source/platform/audio/DynamicsCompressorKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698