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 da348d2117202bca10ee08cab2f8375aa73e9dc1..60a1d9a9a52defd1e541bd419cc9fe1f0061dee9 100644 |
--- a/webrtc/modules/audio_device/android/audio_manager.cc |
+++ b/webrtc/modules/audio_device/android/audio_manager.cc |
@@ -220,6 +220,18 @@ bool AudioManager::IsProAudioSupported() const { |
return pro_audio_; |
} |
+bool AudioManager::IsStereoPlayoutSupported() const { |
+ RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
+ ALOGD("IsStereoPlayoutSupported()"); |
+ return (playout_parameters_.channels() == 2); |
+} |
+ |
+bool AudioManager::IsStereoRecordSupported() const { |
+ RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
+ ALOGD("IsStereoRecordSupported()"); |
+ return (record_parameters_.channels() == 2); |
+} |
+ |
int AudioManager::GetDelayEstimateInMilliseconds() const { |
return delay_estimate_in_milliseconds_; |
} |