blob: b5c711064446229ea04217a059d0e28156e31889 [file] [log] [blame]
Karl Wiberg98900742018-03-01 12:03:49 +01001/*
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
13namespace webrtc {
14
15std::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
22std::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