blob: 8bcba14c98c1c41fa0e7d1085f67405b71bfaa70 [file] [log] [blame]
// 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/memory/ptr_util.h"
#include "base/notreached.h"
#include "remoting/codec/audio_decoder_opus.h"
#include "remoting/protocol/session_config.h"
namespace remoting {
std::unique_ptr<AudioDecoder> AudioDecoder::CreateAudioDecoder(
const protocol::SessionConfig& config) {
if (config.audio_config().codec == protocol::ChannelConfig::CODEC_OPUS) {
return base::WrapUnique(new AudioDecoderOpus());
}
NOTIMPLEMENTED();
return nullptr;
}
} // namespace remoting