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

Unified Diff: media/audio/fake_audio_output_stream.cc

Issue 357004: SetVolume and GetVolume take one volume instead of separate left and right vo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « media/audio/fake_audio_output_stream.h ('k') | media/audio/linux/alsa_output.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_output_stream.cc
===================================================================
--- media/audio/fake_audio_output_stream.cc (revision 30948)
+++ media/audio/fake_audio_output_stream.cc (working copy)
@@ -39,14 +39,12 @@
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 @@
}
FakeAudioOutputStream::FakeAudioOutputStream()
- : left_volume_(0),
- right_volume_(0),
+ : volume_(0),
callback_(NULL),
packet_size_(0) {
}
« no previous file with comments | « media/audio/fake_audio_output_stream.h ('k') | media/audio/linux/alsa_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698