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

Unified Diff: content/renderer/media/audio_device.cc

Issue 10703191: Remove GetVolume from media::AudioRendererSink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_input_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.cc
diff --git a/content/renderer/media/audio_device.cc b/content/renderer/media/audio_device.cc
index 7365bde690a88376c2280e7091f93f0a9684790a..f02e33f7ae0c81fe608583a7e0e31600e0c92fb0 100644
--- a/content/renderer/media/audio_device.cc
+++ b/content/renderer/media/audio_device.cc
@@ -41,7 +41,6 @@ class AudioDevice::AudioThreadCallback
AudioDevice::AudioDevice()
: ScopedLoopObserver(ChildProcess::current()->io_message_loop()),
callback_(NULL),
- volume_(1.0),
stream_id_(0),
play_on_start_(true),
is_started_(false) {
@@ -103,16 +102,9 @@ bool AudioDevice::SetVolume(double volume) {
return false;
}
- volume_ = volume;
-
return true;
}
-void AudioDevice::GetVolume(double* volume) {
- // Return a locally cached version of the current scaling factor.
- *volume = volume_;
-}
-
void AudioDevice::CreateStreamOnIOThread(const media::AudioParameters& params) {
DCHECK(message_loop()->BelongsToCurrentThread());
// Make sure we don't create the stream more than once.
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698