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

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

Issue 358823002: changed the input low latency input impl to use client's requested buffer size on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format Created 6 years, 6 months 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_low_latency_input_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_manager_mac.cc
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
index 970720679abf418b9cd2ef11f49d017d75c60084..eabce32381920bd541e983c607b0e7ab6a4023e1 100644
--- a/media/audio/mac/audio_manager_mac.cc
+++ b/media/audio/mac/audio_manager_mac.cc
@@ -625,18 +625,7 @@ AudioInputStream* AudioManagerMac::MakeLowLatencyInputStream(
AudioDeviceID audio_device_id = GetAudioDeviceIdByUId(true, device_id);
AudioInputStream* stream = NULL;
if (audio_device_id != kAudioObjectUnknown) {
- // AUAudioInputStream needs to be fed the preferred audio output parameters
- // of the matching device so that the buffer size of both input and output
- // can be matched. See constructor of AUAudioInputStream for more.
- const std::string associated_output_device(
- GetAssociatedOutputDeviceID(device_id));
- const AudioParameters output_params =
- GetPreferredOutputStreamParameters(
- associated_output_device.empty() ?
- AudioManagerBase::kDefaultDeviceId : associated_output_device,
- params);
- stream = new AUAudioInputStream(this, params, output_params,
- audio_device_id);
+ stream = new AUAudioInputStream(this, params, audio_device_id);
input_streams_.push_back(stream);
}
« no previous file with comments | « media/audio/mac/audio_low_latency_input_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698