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

Unified Diff: media/audio/mac/audio_output_mac.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/mac/audio_output_mac.h ('k') | media/audio/mac/audio_output_mac_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_output_mac.cc
===================================================================
--- media/audio/mac/audio_output_mac.cc (revision 30948)
+++ media/audio/mac/audio_output_mac.cc (working copy)
@@ -146,25 +146,22 @@
HandleError(err);
}
-void PCMQueueOutAudioOutputStream::SetVolume(double left_level,
- double ) {
+void PCMQueueOutAudioOutputStream::SetVolume(double volume) {
if (!audio_queue_)
return;
- volume_ = static_cast<float>(left_level);
+ volume_ = static_cast<float>(volume);
OSStatus err = AudioQueueSetParameter(audio_queue_,
kAudioQueueParam_Volume,
- left_level);
+ volume);
if (err != noErr) {
HandleError(err);
}
}
-void PCMQueueOutAudioOutputStream::GetVolume(double* left_level,
- double* right_level) {
+void PCMQueueOutAudioOutputStream::GetVolume(double* volume) {
if (!audio_queue_)
return;
- *left_level = volume_;
- *right_level = volume_;
+ *volume = volume_;
}
// Reorder PCM from AAC layout to Core Audio layout.
« no previous file with comments | « media/audio/mac/audio_output_mac.h ('k') | media/audio/mac/audio_output_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698