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

Unified Diff: media/audio/win/waveout_output_win.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/win/waveout_output_win.h ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/waveout_output_win.cc
===================================================================
--- media/audio/win/waveout_output_win.cc (revision 30948)
+++ media/audio/win/waveout_output_win.cc (working copy)
@@ -215,19 +215,16 @@
manager_->ReleaseStream(this);
}
-void PCMWaveOutAudioOutputStream::SetVolume(double left_level,
- double ) {
+void PCMWaveOutAudioOutputStream::SetVolume(double volume) {
if (!waveout_)
return;
- volume_ = static_cast<float>(left_level);
+ volume_ = static_cast<float>(volume);
}
-void PCMWaveOutAudioOutputStream::GetVolume(double* left_level,
- double* right_level) {
+void PCMWaveOutAudioOutputStream::GetVolume(double* volume) {
if (!waveout_)
return;
- *left_level = volume_;
- *right_level = volume_;
+ *volume = volume_;
}
void PCMWaveOutAudioOutputStream::HandleError(MMRESULT error) {
« no previous file with comments | « media/audio/win/waveout_output_win.h ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698