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

Unified Diff: remoting/codec/audio_decoder.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
« no previous file with comments | « remoting/codec/DEPS ('k') | remoting/codec/audio_decoder_opus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_decoder.cc
diff --git a/remoting/codec/audio_decoder.cc b/remoting/codec/audio_decoder.cc
index 6e6a68672ce873b71e0bfb8f86ad210bb49c8c4b..3dc70c30276561794ed2df2dc4a5b72bf4630898 100644
--- a/remoting/codec/audio_decoder.cc
+++ b/remoting/codec/audio_decoder.cc
@@ -5,6 +5,7 @@
#include "remoting/codec/audio_decoder.h"
#include "base/logging.h"
+#include "remoting/codec/audio_decoder_opus.h"
#include "remoting/codec/audio_decoder_speex.h"
#include "remoting/codec/audio_decoder_verbatim.h"
#include "remoting/protocol/session_config.h"
@@ -17,6 +18,8 @@ scoped_ptr<AudioDecoder> AudioDecoder::CreateAudioDecoder(
if (audio_config.codec == protocol::ChannelConfig::CODEC_VERBATIM) {
return scoped_ptr<AudioDecoder>(new AudioDecoderVerbatim());
+ } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) {
+ return scoped_ptr<AudioDecoder>(new AudioDecoderOpus());
} else if (audio_config.codec == protocol::ChannelConfig::CODEC_SPEEX) {
return scoped_ptr<AudioDecoder>(new AudioDecoderSpeex());
}
« no previous file with comments | « remoting/codec/DEPS ('k') | remoting/codec/audio_decoder_opus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698