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

Unified Diff: webrtc/modules/audio_device/android/audio_manager.cc

Issue 1238083005: [NOT FOR REVIEW] Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@size_t
Patch Set: Checkpoint Created 5 years, 5 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
Index: webrtc/modules/audio_device/android/audio_manager.cc
diff --git a/webrtc/modules/audio_device/android/audio_manager.cc b/webrtc/modules/audio_device/android/audio_manager.cc
index 81fabdf9fec08a996de2b057679dddbaf4f1276f..0999c56bf2087b5d0101e9f114cc4b3fec3002a4 100644
--- a/webrtc/modules/audio_device/android/audio_manager.cc
+++ b/webrtc/modules/audio_device/android/audio_manager.cc
@@ -191,8 +191,10 @@ void AudioManager::OnCacheAudioParameters(JNIEnv* env,
hardware_aec_ = hardware_aec;
low_latency_playout_ = low_latency_output;
// TODO(henrika): add support for stereo output.
- playout_parameters_.reset(sample_rate, channels, output_buffer_size);
- record_parameters_.reset(sample_rate, channels, input_buffer_size);
+ playout_parameters_.reset(sample_rate, static_cast<size_t>(channels),
+ output_buffer_size);
+ record_parameters_.reset(sample_rate, static_cast<size_t>(channels),
+ input_buffer_size);
}
const AudioParameters& AudioManager::GetPlayoutAudioParameters() {

Powered by Google App Engine
This is Rietveld 408576698