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

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

Issue 152333003: Remove emphasis/de-emphasis filters from DynamicsCompressor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add expected result. Created 6 years, 10 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 27 matching lines...) Expand all
38 namespace WebCore { 38 namespace WebCore {
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(float* sourceChannels[], 48 void process(const float* sourceChannels[],
49 float* destinationChannels[], 49 float* destinationChannels[],
50 unsigned numberOfChannels, 50 unsigned numberOfChannels,
51 unsigned framesToProcess, 51 unsigned framesToProcess,
52 52
53 float dbThreshold, 53 float dbThreshold,
54 float dbKnee, 54 float dbKnee,
55 float ratio, 55 float ratio,
56 float attackTime, 56 float attackTime,
57 float releaseTime, 57 float releaseTime,
58 float preDelayTime, 58 float preDelayTime,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebCore
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