Agora C++ API Reference for All Platforms

NGIAgoraAudioMixerSource.h
1 //
2 // Agora SDK
3 // Created by wangqin in 2023-05.
4 // Copyright (c) 2018 Agora.io. All rights reserved.
5 //
6
7 #pragma once // NOLINT(build/header_guard)
8
9 #include "AgoraBase.h"
10 #include "AgoraRefPtr.h"
11 #include "IAgoraService.h"
12 #include <api/cpp/aosl_ares_class.h>
13
14 namespace agora {
15 namespace rtc {
16
17 class IAudioTrack;
24 class IAudioMixerSource : public RefCountInterface {
25 public:
34 virtual int addAudioTrack(agora_refptr<IAudioTrack> track, bool is_remote, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
42 virtual int removeAudioTrack(agora_refptr<IAudioTrack> track, bool is_remote, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
43 };
44
45 }
46 }
agora::agora_refptr
Definition: AgoraRefPtr.h:44
agora::rtc::IAudioMixerSource
Definition: NGIAgoraAudioMixerSource.h:24
agora::rtc::IAudioMixerSource::addAudioTrack
virtual int addAudioTrack(agora_refptr< IAudioTrack > track, bool is_remote, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::IAudioMixerSource::removeAudioTrack
virtual int removeAudioTrack(agora_refptr< IAudioTrack > track, bool is_remote, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
rtc
Definition: video_node_i.h:28