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

Unified Diff: remoting/host/client_session.cc

Issue 11189047: Add opus audio codec support in remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 8a9b84295a254909421011425b08d6bddefc407f..67e28ecd72f2bb16f73112d97182b547fe7d59fe 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -8,6 +8,7 @@
#include "base/message_loop_proxy.h"
#include "remoting/codec/audio_encoder.h"
+#include "remoting/codec/audio_encoder_opus.h"
#include "remoting/codec/audio_encoder_speex.h"
#include "remoting/codec/audio_encoder_verbatim.h"
#include "remoting/codec/video_encoder.h"
@@ -293,6 +294,8 @@ scoped_ptr<AudioEncoder> ClientSession::CreateAudioEncoder(
return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim());
} else if (audio_config.codec == protocol::ChannelConfig::CODEC_SPEEX) {
return scoped_ptr<AudioEncoder>(new AudioEncoderSpeex());
+ } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) {
+ return scoped_ptr<AudioEncoder>(new AudioEncoderOpus());
}
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698