Karl Wiberg | 9890074 | 2018-03-01 11:03:49 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "api/audio_codecs/audio_decoder_factory.h" |
| 12 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | std::unique_ptr<AudioDecoder> AudioDecoderFactory::MakeAudioDecoder( |
| 16 | const SdpAudioFormat& format, |
| 17 | rtc::Optional<AudioCodecPairId> codec_pair_id) { |
| 18 | return MakeAudioDecoder(format); |
| 19 | } |
| 20 | |
| 21 | std::unique_ptr<AudioDecoder> AudioDecoderFactory::MakeAudioDecoder( |
| 22 | const SdpAudioFormat& format) { |
| 23 | return MakeAudioDecoder(format, rtc::nullopt); |
| 24 | } |
| 25 | |
| 26 | } // namespace webrtc |