Karl Wiberg | 9890074 | 2018-03-01 12:03:49 +0100 | [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_encoder_factory.h" |
| 12 | |
| 13 | namespace webrtc { |
| 14 | |
| 15 | std::unique_ptr<AudioEncoder> AudioEncoderFactory::MakeAudioEncoder( |
| 16 | int payload_type, |
| 17 | const SdpAudioFormat& format, |
| 18 | rtc::Optional<AudioCodecPairId> codec_pair_id) { |
| 19 | return MakeAudioEncoder(payload_type, format); |
| 20 | } |
| 21 | |
| 22 | std::unique_ptr<AudioEncoder> AudioEncoderFactory::MakeAudioEncoder( |
| 23 | int payload_type, |
| 24 | const SdpAudioFormat& format) { |
| 25 | return MakeAudioEncoder(payload_type, format, rtc::nullopt); |
| 26 | } |
| 27 | |
| 28 | } // namespace webrtc |