summaryrefslogtreecommitdiffstats
path: root/media/audio/fake_audio_output_stream.cc
diff options
context:
space:
mode:
authorfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 22:25:18 +0000
committerfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 22:25:18 +0000
commit3ee84160f356ad78f48639b4e26eebee9a88b9c1 (patch)
tree41cdcce0762674b9eb5893d0585673d91bea53e2 /media/audio/fake_audio_output_stream.cc
parent3da33567fb3c69351d74ccb11d884e4ea9f9a21e (diff)
downloadchromium_src-3ee84160f356ad78f48639b4e26eebee9a88b9c1.zip
chromium_src-3ee84160f356ad78f48639b4e26eebee9a88b9c1.tar.gz
chromium_src-3ee84160f356ad78f48639b4e26eebee9a88b9c1.tar.bz2
SetVolume and GetVolume take one volume instead of separate left and right volumes.
BUG=26660 TEST=no visible difference. Make sure volume still works. Code size should go down marginally. Review URL: http://codereview.chromium.org/357004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/fake_audio_output_stream.cc')
-rw-r--r--media/audio/fake_audio_output_stream.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/media/audio/fake_audio_output_stream.cc b/media/audio/fake_audio_output_stream.cc
index af69a2f..cd57719 100644
--- a/media/audio/fake_audio_output_stream.cc
+++ b/media/audio/fake_audio_output_stream.cc
@@ -39,14 +39,12 @@ void FakeAudioOutputStream::Start(AudioSourceCallback* callback) {
void FakeAudioOutputStream::Stop() {
}
-void FakeAudioOutputStream::SetVolume(double left_level, double right_level) {
- left_volume_ = left_level;
- right_volume_ = right_level;
+void FakeAudioOutputStream::SetVolume(double volume) {
+ volume_ = volume;
}
-void FakeAudioOutputStream::GetVolume(double* left_level, double* right_level) {
- *left_level = left_volume_;
- *right_level = right_volume_;
+void FakeAudioOutputStream::GetVolume(double* volume) {
+ *volume = volume_;
}
void FakeAudioOutputStream::Close() {
@@ -59,8 +57,7 @@ void FakeAudioOutputStream::Close() {
}
FakeAudioOutputStream::FakeAudioOutputStream()
- : left_volume_(0),
- right_volume_(0),
+ : volume_(0),
callback_(NULL),
packet_size_(0) {
}