Index: Source/modules/webaudio/AudioBufferSourceNode.h |
diff --git a/Source/modules/webaudio/AudioBufferSourceNode.h b/Source/modules/webaudio/AudioBufferSourceNode.h |
index d8efe5b2f13c529c4a309c85672a71039b059c00..49d4de9b5bcf4af2f9abd1fadebe371cd9a257ab 100644 |
--- a/Source/modules/webaudio/AudioBufferSourceNode.h |
+++ b/Source/modules/webaudio/AudioBufferSourceNode.h |
@@ -79,7 +79,6 @@ public: |
void setLoopStart(double loopStart) { m_loopStart = loopStart; } |
void setLoopEnd(double loopEnd) { m_loopEnd = loopEnd; } |
- AudioParam* gain() { return m_gain.get(); } |
AudioParam* playbackRate() { return m_playbackRate.get(); } |
// If a panner node is set, then we can incorporate doppler shift into the playback pitch rate. |
@@ -108,8 +107,7 @@ private: |
OwnPtr<const float*[]> m_sourceChannels; |
OwnPtr<float*[]> m_destinationChannels; |
- // Used for the "gain" and "playbackRate" attributes. |
- RefPtr<AudioParam> m_gain; |
+ // Used for the "playbackRate" attributes. |
RefPtr<AudioParam> m_playbackRate; |
// If m_isLooping is false, then this node will be done playing and become inactive after it reaches the end of the sample data in the buffer. |
@@ -132,9 +130,6 @@ private: |
// It incorporates the base pitch rate, any sample-rate conversion factor from the buffer, and any doppler shift from an associated panner node. |
double totalPitchRate(); |
- // m_lastGain provides continuity when we dynamically adjust the gain. |
- float m_lastGain; |
- |
// We optionally keep track of a panner node which has a doppler shift that is incorporated into |
// the pitch rate. We manually manage ref-counting because we want to use RefTypeConnection. |
PannerNode* m_pannerNode; |