blob: 51949f7f4dcc6cf4c2f5c0883000d553f9fc0250 [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001/*
kjellanderb24317b2016-02-10 07:54:43 -08002 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00003 *
kjellanderb24317b2016-02-10 07:54:43 -08004 * 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.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00009 */
10
Steve Anton10542f22019-01-11 09:11:00 -080011#include "pc/local_audio_source.h"
henrike@webrtc.org28e20752013-07-10 00:45:36 +000012
henrike@webrtc.org28e20752013-07-10 00:45:36 +000013using webrtc::MediaSourceInterface;
14
15namespace webrtc {
16
buildbot@webrtc.orgd4e598d2014-07-29 17:36:52 +000017rtc::scoped_refptr<LocalAudioSource> LocalAudioSource::Create(
htaa2a49d92016-03-04 02:51:39 -080018 const cricket::AudioOptions* audio_options) {
Tommi87f70902021-04-27 14:43:08 +020019 auto source = rtc::make_ref_counted<LocalAudioSource>();
deadbeef757146b2017-02-10 21:26:48 -080020 source->Initialize(audio_options);
htaa2a49d92016-03-04 02:51:39 -080021 return source;
22}
23
Yves Gerey665174f2018-06-19 15:03:05 +020024void LocalAudioSource::Initialize(const cricket::AudioOptions* audio_options) {
htaa2a49d92016-03-04 02:51:39 -080025 if (!audio_options)
26 return;
27
28 options_ = *audio_options;
henrike@webrtc.org28e20752013-07-10 00:45:36 +000029}
30
31} // namespace webrtc