blob: 51949f7f4dcc6cf4c2f5c0883000d553f9fc0250 [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:361/*
kjellanderb24317b2016-02-10 15:54:432 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
henrike@webrtc.org28e20752013-07-10 00:45:363 *
kjellanderb24317b2016-02-10 15:54:434 * 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:369 */
10
Steve Anton10542f22019-01-11 17:11:0011#include "pc/local_audio_source.h"
henrike@webrtc.org28e20752013-07-10 00:45:3612
henrike@webrtc.org28e20752013-07-10 00:45:3613using webrtc::MediaSourceInterface;
14
15namespace webrtc {
16
buildbot@webrtc.orgd4e598d2014-07-29 17:36:5217rtc::scoped_refptr<LocalAudioSource> LocalAudioSource::Create(
htaa2a49d92016-03-04 10:51:3918 const cricket::AudioOptions* audio_options) {
Tommi87f70902021-04-27 12:43:0819 auto source = rtc::make_ref_counted<LocalAudioSource>();
deadbeef757146b2017-02-11 05:26:4820 source->Initialize(audio_options);
htaa2a49d92016-03-04 10:51:3921 return source;
22}
23
Yves Gerey665174f2018-06-19 13:03:0524void LocalAudioSource::Initialize(const cricket::AudioOptions* audio_options) {
htaa2a49d92016-03-04 10:51:3925 if (!audio_options)
26 return;
27
28 options_ = *audio_options;
henrike@webrtc.org28e20752013-07-10 00:45:3629}
30
31} // namespace webrtc