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

Unified Diff: Source/modules/webaudio/AudioBuffer.h

Issue 190973010: Remove unnecessary attribute "gain" in AudioBuffer and AudioBufferSourceNode interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Combine with removing gains from AudioBuffer and AudioBufferSourceNode Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/webaudio/AudioBuffer.h
diff --git a/Source/modules/webaudio/AudioBuffer.h b/Source/modules/webaudio/AudioBuffer.h
index 0609073a1a3a5af6c490009785bfec91a6ab3370..a7627bed7c57625d07a046809c4665ad74a56381 100644
--- a/Source/modules/webaudio/AudioBuffer.h
+++ b/Source/modules/webaudio/AudioBuffer.h
@@ -59,10 +59,6 @@ public:
Float32Array* getChannelData(unsigned channelIndex);
void zero();
- // Scalar gain
- double gain() const { return m_gain; }
- void setGain(double gain) { m_gain = gain; }
-
static float minAllowedSampleRate();
static float maxAllowedSampleRate();
protected:
@@ -70,7 +66,6 @@ protected:
explicit AudioBuffer(AudioBus*);
bool createdSuccessfully(unsigned desiredNumberOfChannels) const;
- double m_gain; // scalar gain
float m_sampleRate;
size_t m_length;
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioBuffer.cpp » ('j') | Source/modules/webaudio/AudioBufferSourceNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698