| Index: remoting/codec/audio_decoder.cc
|
| diff --git a/remoting/codec/audio_decoder.cc b/remoting/codec/audio_decoder.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57a6e1c40230eed4f62171b322590cf49dc30a81
|
| --- /dev/null
|
| +++ b/remoting/codec/audio_decoder.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "remoting/codec/audio_decoder.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "remoting/codec/audio_decoder_verbatim.h"
|
| +#include "remoting/protocol/session_config.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +scoped_ptr<AudioDecoder> AudioDecoder::CreateAudioDecoder(
|
| + const protocol::SessionConfig& config) {
|
| + const protocol::ChannelConfig& audio_config = config.audio_config();
|
| +
|
| + if (audio_config.codec == protocol::ChannelConfig::CODEC_VERBATIM) {
|
| + return scoped_ptr<AudioDecoder>(new AudioDecoderVerbatim());
|
| + }
|
| +
|
| + NOTIMPLEMENTED();
|
| + return scoped_ptr<AudioDecoder>(NULL);
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|