Index: talk/session/media/channelmanager.cc |
diff --git a/talk/session/media/channelmanager.cc b/talk/session/media/channelmanager.cc |
index bb6fb25cb575301ad6b877d27c352c9aab90eed9..eb869dd277c204f4a494a5c1cb83ecb8c2354c77 100644 |
--- a/talk/session/media/channelmanager.cc |
+++ b/talk/session/media/channelmanager.cc |
@@ -101,8 +101,6 @@ void ChannelManager::Construct(MediaEngineInterface* me, |
initialized_ = false; |
main_thread_ = rtc::Thread::Current(); |
worker_thread_ = worker_thread; |
- // Get the default audio options from the media engine. |
- audio_options_ = media_engine_->GetAudioOptions(); |
audio_output_volume_ = kNotSetOutputVolume; |
local_renderer_ = NULL; |
capturing_ = false; |
@@ -205,11 +203,6 @@ bool ChannelManager::Init() { |
return false; |
} |
- if (!SetAudioOptions(audio_options_)) { |
- LOG(LS_WARNING) << "Failed to SetAudioOptions with options: " |
- << audio_options_.ToString(); |
- } |
- |
// If audio_output_volume_ has been set via SetOutputVolume(), set the |
// audio output volume of the engine. |
if (kNotSetOutputVolume != audio_output_volume_ && |
@@ -427,43 +420,6 @@ void ChannelManager::DestroyDataChannel_w(DataChannel* data_channel) { |
delete data_channel; |
} |
-bool ChannelManager::SetAudioOptions(const AudioOptions& options) { |
- // "Get device ids from DeviceManager" - these are the defaults returned. |
- Device in_dev("", -1); |
- Device out_dev("", -1); |
- |
- // If we're initialized, pass the settings to the media engine. |
- bool ret = true; |
- if (initialized_) { |
- ret = worker_thread_->Invoke<bool>( |
- Bind(&ChannelManager::SetAudioOptions_w, this, |
- options, &in_dev, &out_dev)); |
- } |
- |
- // If all worked well, save the values for use in GetAudioOptions. |
- if (ret) { |
- audio_options_ = options; |
- } |
- return ret; |
-} |
- |
-bool ChannelManager::SetAudioOptions_w( |
- const AudioOptions& options, |
- const Device* in_dev, const Device* out_dev) { |
- ASSERT(worker_thread_ == rtc::Thread::Current()); |
- ASSERT(initialized_); |
- |
- // Set audio options |
- bool ret = media_engine_->SetAudioOptions(options); |
- |
- // Set the audio devices |
- if (ret) { |
- ret = media_engine_->SetSoundDevices(in_dev, out_dev); |
- } |
- |
- return ret; |
-} |
- |
bool ChannelManager::GetOutputVolume(int* level) { |
if (!initialized_) { |
return false; |