Agora RTC Objective-C API Reference Refactor

AgoraAudioFilterDelegate.h
Go to the documentation of this file.
1 //
2 // AgoraAudioFilterDelegate.h
3 // Agora SDK
4 //
5 // Created by LLF on 2021-3-9.
6 // Copyright (c) 2021 Agora. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "AgoraExtObjects.h"
11
18 @protocol AgoraAudioFilterDelegate <NSObject>
19
20 // Return NO if filter decide to drop the frame.
21 // Implementation should not change samples_per_channel_/sample_rate_hz_/num_channels_
22 // Implementation should just adapt data of audio frame.
31 - (BOOL)adaptAudioFrame:(AgoraAudioPcmFrame * __nonnull)srcFrame
32 dstFrame:(AgoraAudioPcmFrame *_Nullable* _Nullable)dstFrame NS_SWIFT_NAME(adaptAudioFrame(_:dstFrame:));
33
40 - (void)setEnabled:(BOOL)enabled NS_SWIFT_NAME(setEnabled(_:));
41
48 - (BOOL)isEnabled NS_SWIFT_NAME(isEnabled());
49
59 - (NSInteger)setPropertyWithKey:(NSString * __nonnull)key value:(NSData * __nonnull)value NS_SWIFT_NAME(setPropertyWithKey(_:value:));
60
70 - (NSInteger)getPropertyWithKey:(NSString * __nonnull)key value:(NSData *_Nullable* _Nullable)value NS_SWIFT_NAME(getPropertyWithKey(_:value:));
71
79 - (NSString * __nonnull)getName NS_SWIFT_NAME(getName());
80
81 @end
AgoraExtObjects.h
AgoraAudioFilterDelegate-p
Definition: AgoraAudioFilterDelegate.h:18
-[AgoraAudioFilterDelegate-p getName]
NSString *__nonnull getName()
AgoraAudioPcmFrame
Definition: AgoraExtObjects.h:26
-[AgoraAudioFilterDelegate-p isEnabled]
BOOL isEnabled()