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

Side by Side Diff: media/audio/fake_audio_input_stream.cc

Issue 9418042: Adding microphone volume support to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed henrik's comments Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/fake_audio_input_stream.h" 5 #include "media/audio/fake_audio_input_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 using base::Time; 9 using base::Time;
10 using base::TimeDelta; 10 using base::TimeDelta;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 thread_.Stop(); 70 thread_.Stop();
71 } 71 }
72 72
73 void FakeAudioInputStream::Close() { 73 void FakeAudioInputStream::Close() {
74 if (callback_) { 74 if (callback_) {
75 callback_->OnClose(this); 75 callback_->OnClose(this);
76 callback_ = NULL; 76 callback_ = NULL;
77 } 77 }
78 Release(); // Destoys this object. 78 Release(); // Destoys this object.
79 } 79 }
80
81 double FakeAudioInputStream::GetMaxVolume() {
82 return 0.0;
83 }
84
85 void FakeAudioInputStream::SetVolume(double volume) {}
86
87 double FakeAudioInputStream::GetVolume() {
88 return 0.0;
89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698