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

Side by Side Diff: Source/modules/webaudio/DynamicsCompressorNode.h

Issue 645853010: Make reduction value of dynamics compressor zero when no sources are connected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Created 6 years, 2 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 return new DynamicsCompressorNode(context, sampleRate); 41 return new DynamicsCompressorNode(context, sampleRate);
42 } 42 }
43 43
44 virtual ~DynamicsCompressorNode(); 44 virtual ~DynamicsCompressorNode();
45 45
46 // AudioNode 46 // AudioNode
47 virtual void dispose() override; 47 virtual void dispose() override;
48 virtual void process(size_t framesToProcess) override; 48 virtual void process(size_t framesToProcess) override;
49 virtual void initialize() override; 49 virtual void initialize() override;
50 virtual void uninitialize() override; 50 virtual void uninitialize() override;
51 virtual void clearInternalStateWhenDisabled() override;
51 52
52 // Static compression curve parameters. 53 // Static compression curve parameters.
53 AudioParam* threshold() { return m_threshold.get(); } 54 AudioParam* threshold() { return m_threshold.get(); }
54 AudioParam* knee() { return m_knee.get(); } 55 AudioParam* knee() { return m_knee.get(); }
55 AudioParam* ratio() { return m_ratio.get(); } 56 AudioParam* ratio() { return m_ratio.get(); }
56 AudioParam* attack() { return m_attack.get(); } 57 AudioParam* attack() { return m_attack.get(); }
57 AudioParam* release() { return m_release.get(); } 58 AudioParam* release() { return m_release.get(); }
58 59
59 // Amount by which the compressor is currently compressing the signal in dec ibels. 60 // Amount by which the compressor is currently compressing the signal in dec ibels.
60 AudioParam* reduction() { return m_reduction.get(); } 61 AudioParam* reduction() { return m_reduction.get(); }
(...skipping 11 matching lines...) Expand all
72 Member<AudioParam> m_knee; 73 Member<AudioParam> m_knee;
73 Member<AudioParam> m_ratio; 74 Member<AudioParam> m_ratio;
74 Member<AudioParam> m_reduction; 75 Member<AudioParam> m_reduction;
75 Member<AudioParam> m_attack; 76 Member<AudioParam> m_attack;
76 Member<AudioParam> m_release; 77 Member<AudioParam> m_release;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif // DynamicsCompressorNode_h 82 #endif // DynamicsCompressorNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webaudio/DynamicsCompressorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698