• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2017 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 "logging/rtc_event_log/events/rtc_event_audio_playout.h"
12 
13 #include "absl/memory/memory.h"
14 
15 namespace webrtc {
16 
RtcEventAudioPlayout(uint32_t ssrc)17 RtcEventAudioPlayout::RtcEventAudioPlayout(uint32_t ssrc) : ssrc_(ssrc) {}
18 
RtcEventAudioPlayout(const RtcEventAudioPlayout & other)19 RtcEventAudioPlayout::RtcEventAudioPlayout(const RtcEventAudioPlayout& other)
20     : RtcEvent(other.timestamp_us_), ssrc_(other.ssrc_) {}
21 
GetType() const22 RtcEvent::Type RtcEventAudioPlayout::GetType() const {
23   return RtcEvent::Type::AudioPlayout;
24 }
25 
IsConfigEvent() const26 bool RtcEventAudioPlayout::IsConfigEvent() const {
27   return false;
28 }
29 
Copy() const30 std::unique_ptr<RtcEventAudioPlayout> RtcEventAudioPlayout::Copy() const {
31   return absl::WrapUnique<RtcEventAudioPlayout>(
32       new RtcEventAudioPlayout(*this));
33 }
34 
35 }  // namespace webrtc
36