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

Unified Diff: media/audio/mac/audio_low_latency_output_mac.cc

Issue 11591013: Setting audio volume is no longer ignored on low latency audio path for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 8 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_low_latency_output_mac.cc
diff --git a/media/audio/mac/audio_low_latency_output_mac.cc b/media/audio/mac/audio_low_latency_output_mac.cc
index 88891e22070a4037685c6e44f71b3e4ccea9bd19..25c9d4e0ccbc96ede7e07e392d642d47d0e347cc 100644
--- a/media/audio/mac/audio_low_latency_output_mac.cc
+++ b/media/audio/mac/audio_low_latency_output_mac.cc
@@ -286,6 +286,13 @@ OSStatus AUAudioOutputStream::Render(UInt32 number_of_frames,
frames_filled, format_.mBitsPerChannel / 8, audio_data);
uint32 filled = frames_filled * format_.mBytesPerFrame;
+ // Perform in-place, software-volume adjustments.
+ media::AdjustVolume(audio_data,
+ filled,
+ audio_bus_->channels(),
+ format_.mBitsPerChannel / 8,
+ volume_);
+
// Handle channel order for 5.1 audio.
// TODO(dalecurtis): Channel downmixing, upmixing, should be done in mixer;
// volume adjust should use SSE optimized vector_fmul() prior to interleave.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698