PLAudioEffectConfiguration.h
4.83 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
//
// PLAudioEffectConfiguration.h
// PLCameraStreamingKit
//
// Created by TaoZeyu on 16/6/21.
// Copyright © 2016年 Pili Engineering, Qiniu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PLTypeDefines.h"
@interface PLAudioEffectConfiguration : NSObject
/**
@brief 音效配置类型
*/
@property (nonatomic, readonly) PLAudioEffectConfigurationType type;
@end
@interface PLAudioEffectModeConfiguration : PLAudioEffectConfiguration
/**
@brief 预设的混响音效配置 - LowLevel
*/
+ (instancetype)reverbLowLevelModeConfiguration;
/**
@brief 预设的混响音效配置 - MediumLevel
*/
+ (instancetype)reverbMediumLevelModeConfiguration;
/**
@brief 预设的混响音效配置 - HeightLevel
*/
+ (instancetype)reverbHeightLevelModeConfiguration;
@end
@interface PLAudioEffectReverb2Configuration : PLAudioEffectConfiguration
@property (nonatomic, assign) double decayTimeAt0Hz;
@property (nonatomic, assign) double decayTimeAtNyquist;
@property (nonatomic, assign) double cutoffFrequency;
@property (nonatomic, assign) double dryWetMix;
@property (nonatomic, assign) double gain;
@property (nonatomic, assign) double minDelayTime;
@property (nonatomic, assign) double maxDelayTime;
@property (nonatomic, assign) double randomizeReflections;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectDynamicsProcessorConfiguration : PLAudioEffectConfiguration
@property (nonatomic, assign) double threshold;
@property (nonatomic, assign) double headRoom;
@property (nonatomic, assign) double expansionRatio;
@property (nonatomic, assign) double attackTime;
@property (nonatomic, assign) double releaseTime;
@property (nonatomic, assign) double masterGain;
@property (nonatomic, assign) double inputAmplitude;
@property (nonatomic, assign) double outputAmplitude;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectBandpassConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double centerFrequency;
@property (nonatomic) double bandwidth;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectDelayConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double wetDryMix;
@property (nonatomic) double delayTime;
@property (nonatomic) double feedback;
@property (nonatomic) double lopassCutoff;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectDistortionConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double delay;
@property (nonatomic) double decay;
@property (nonatomic) double delayMix;
@property (nonatomic) double decimation;
@property (nonatomic) double rounding;
@property (nonatomic) double decimationMix;
@property (nonatomic) double linearTerm;
@property (nonatomic) double squaredTerm;
@property (nonatomic) double cubicTerm;
@property (nonatomic) double polynomialMix;
@property (nonatomic) double ringModFreq1;
@property (nonatomic) double ringModFreq2;
@property (nonatomic) double ringModBalance;
@property (nonatomic) double ringModMix;
@property (nonatomic) double softClipGain;
@property (nonatomic) double finalMix;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectNewTimePitchConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double rate;
@property (nonatomic) double pitch;
@property (nonatomic) double overlap;
@property (nonatomic) double enablePeakLocking;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectParametricEqConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double centerFrequency;
@property (nonatomic) double qFactor;
@property (nonatomic) double gain;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectPeakLimiterConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double attackTime;
@property (nonatomic) double decayTime;
@property (nonatomic) double preGain;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectVarispeedConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double playbackRate;
@property (nonatomic) double playbackCents;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectHighPassConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double cutoffFrequency;
@property (nonatomic) double resonance;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectHighShelfConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double cutoffFrequency;
@property (nonatomic) double gain;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffecLowPassConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double cutoffFrequency;
@property (nonatomic) double resonance;
+ (instancetype)defaultConfiguration;
@end
@interface PLAudioEffectLowShelfConfiguration : PLAudioEffectConfiguration
@property (nonatomic) double cutoffFrequency;
@property (nonatomic) double gain;
+ (instancetype)defaultConfiguration;
@end