TXAudioCustomProcessDelegate.h
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright © 2020 Tencent. All rights reserved.
#ifndef TXAudioCustomProcessDelegate_h
#define TXAudioCustomProcessDelegate_h
#import <Foundation/Foundation.h>
@protocol TXAudioCustomProcessDelegate <NSObject>
/**
* 原始声音的回调
* @param data pcm数据
* @param timeStamp 时间戳
* @param sampleRate 采样率
* @param channels 声道数
* @param withBgm 回调的数据是否包含bgm,当不开启回声消除时,回调的raw pcm会包含bgm
*/
@optional
- (void)onRecordRawPcmData:(NSData *)data
timeStamp:(unsigned long long)timeStamp
sampleRate:(int)sampleRate
channels:(int)channels
withBgm:(BOOL)withBgm;
/**
* 经过特效处理的声音回调
* @param data pcm数据
* @param timeStamp 时间戳
* @param sampleRate 采样率
* @param channels 声道数
*/
@optional
- (void)onRecordPcmData:(NSData *)data
timeStamp:(unsigned long long)timeStamp
sampleRate:(int)sampleRate
channels:(int)channels;
@end
#endif /* TXAudioCustomProcessDelegate_h */