| 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 260e793d600e645d9c18d66e03d3439e3e15a311..169a1929ce8d5e4cf19b4f96c792163b532e7153 100644
 | 
| --- a/webrtc/modules/audio_device/android/audio_manager.cc
 | 
| +++ b/webrtc/modules/audio_device/android/audio_manager.cc
 | 
| @@ -71,12 +71,13 @@ AudioManager::AudioManager()
 | 
|        hardware_agc_(false),
 | 
|        hardware_ns_(false),
 | 
|        low_latency_playout_(false),
 | 
| -      delay_estimate_in_milliseconds_(0) {
 | 
| +      delay_estimate_in_milliseconds_(0),
 | 
| +      output_stream_type_(0) {
 | 
|    ALOGD("ctor%s", GetThreadInfo().c_str());
 | 
|    RTC_CHECK(j_environment_);
 | 
|    JNINativeMethod native_methods[] = {
 | 
|        {"nativeCacheAudioParameters",
 | 
| -       "(IIZZZZIIJ)V",
 | 
| +       "(IIZZZZIIIJ)V",
 | 
|         reinterpret_cast<void*>(&webrtc::AudioManager::CacheAudioParameters)}};
 | 
|    j_native_registration_ = j_environment_->RegisterNatives(
 | 
|        "org/webrtc/voiceengine/WebRtcAudioManager",
 | 
| @@ -179,12 +180,14 @@ void JNICALL AudioManager::CacheAudioParameters(JNIEnv* env,
 | 
|                                                  jboolean low_latency_output,
 | 
|                                                  jint output_buffer_size,
 | 
|                                                  jint input_buffer_size,
 | 
| +                                                jint output_stream_type,
 | 
|                                                  jlong native_audio_manager) {
 | 
|    webrtc::AudioManager* this_object =
 | 
|        reinterpret_cast<webrtc::AudioManager*>(native_audio_manager);
 | 
|    this_object->OnCacheAudioParameters(
 | 
|        env, sample_rate, channels, hardware_aec, hardware_agc, hardware_ns,
 | 
| -      low_latency_output, output_buffer_size, input_buffer_size);
 | 
| +      low_latency_output, output_buffer_size, input_buffer_size,
 | 
| +      output_stream_type);
 | 
|  }
 | 
|  
 | 
|  void AudioManager::OnCacheAudioParameters(JNIEnv* env,
 | 
| @@ -195,7 +198,8 @@ void AudioManager::OnCacheAudioParameters(JNIEnv* env,
 | 
|                                            jboolean hardware_ns,
 | 
|                                            jboolean low_latency_output,
 | 
|                                            jint output_buffer_size,
 | 
| -                                          jint input_buffer_size) {
 | 
| +                                          jint input_buffer_size,
 | 
| +                                          jint output_stream_type) {
 | 
|    ALOGD("OnCacheAudioParameters%s", GetThreadInfo().c_str());
 | 
|    ALOGD("hardware_aec: %d", hardware_aec);
 | 
|    ALOGD("hardware_agc: %d", hardware_agc);
 | 
| @@ -205,11 +209,13 @@ void AudioManager::OnCacheAudioParameters(JNIEnv* env,
 | 
|    ALOGD("channels: %d", channels);
 | 
|    ALOGD("output_buffer_size: %d", output_buffer_size);
 | 
|    ALOGD("input_buffer_size: %d", input_buffer_size);
 | 
| +  ALOGD("output_stream_type: %d", output_stream_type);
 | 
|    RTC_DCHECK(thread_checker_.CalledOnValidThread());
 | 
|    hardware_aec_ = hardware_aec;
 | 
|    hardware_agc_ = hardware_agc;
 | 
|    hardware_ns_ = hardware_ns;
 | 
|    low_latency_playout_ = low_latency_output;
 | 
| +  output_stream_type_ = output_stream_type;
 | 
|    // TODO(henrika): add support for stereo output.
 | 
|    playout_parameters_.reset(sample_rate, channels,
 | 
|                              static_cast<size_t>(output_buffer_size));
 | 
| 
 |