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

Unified Diff: media/audio/linux/alsa_output.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/linux/alsa_output.h ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/linux/alsa_output.cc
===================================================================
--- media/audio/linux/alsa_output.cc (revision 30948)
+++ media/audio/linux/alsa_output.cc (working copy)
@@ -350,16 +350,16 @@
shared_data_.TransitionTo(kIsStopped);
}
-void AlsaPcmOutputStream::SetVolume(double left_level, double right_level) {
+void AlsaPcmOutputStream::SetVolume(double volume) {
DCHECK_EQ(MessageLoop::current(), client_thread_loop_);
- shared_data_.set_volume(static_cast<float>(left_level));
+ shared_data_.set_volume(static_cast<float>(volume));
}
-void AlsaPcmOutputStream::GetVolume(double* left_level, double* right_level) {
+void AlsaPcmOutputStream::GetVolume(double* volume) {
DCHECK_EQ(MessageLoop::current(), client_thread_loop_);
- *left_level = *right_level = shared_data_.volume();
+ *volume = shared_data_.volume();
}
void AlsaPcmOutputStream::OpenTask(size_t packet_size) {
« no previous file with comments | « media/audio/linux/alsa_output.h ('k') | media/audio/linux/audio_manager_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698