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

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

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 float release_zone4); 67 float release_zone4);
68 68
69 void Reset(); 69 void Reset();
70 70
71 unsigned LatencyFrames() const { return last_pre_delay_frames_; } 71 unsigned LatencyFrames() const { return last_pre_delay_frames_; }
72 72
73 float SampleRate() const { return sample_rate_; } 73 float SampleRate() const { return sample_rate_; }
74 74
75 float MeteringGain() const { return metering_gain_; } 75 float MeteringGain() const { return metering_gain_; }
76 76
77 double TailTime() const;
78
77 protected: 79 protected:
78 float sample_rate_; 80 float sample_rate_;
79 81
80 float detector_average_; 82 float detector_average_;
81 float compressor_gain_; 83 float compressor_gain_;
82 84
83 // Metering 85 // Metering
84 float metering_release_k_; 86 float metering_release_k_;
85 float metering_gain_; 87 float metering_gain_;
86 88
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 float knee_threshold_db_; 132 float knee_threshold_db_;
131 float yknee_threshold_db_; 133 float yknee_threshold_db_;
132 134
133 // Internal parameter for the knee portion of the curve. 135 // Internal parameter for the knee portion of the curve.
134 float knee_; 136 float knee_;
135 }; 137 };
136 138
137 } // namespace blink 139 } // namespace blink
138 140
139 #endif // DynamicsCompressorKernel_h 141 #endif // DynamicsCompressorKernel_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698