TuSDKAudioPitchImpl Class Reference
Inherits from | NSObject |
---|---|
Conforms to | TuSDKAudioPitch |
Declared in | TuSDKAudioPitchImpl.h TuSDKAudioPitchImpl.mm |
Other Methods
+ buildWithAudioInfo:
音频变调
+ (id)buildWithAudioInfo:(TuSDKAudioTrackInfo *)info
Parameters
info |
输入音频信息 |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– initWithAudioInfo:
音频变调
- (instancetype)initWithAudioInfo:(TuSDKAudioTrackInfo *)info
Parameters
info |
输入音频信息 |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– buildAudioPitch
创建变调器
- (void)buildAudioPitch
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– setInputInfo:
切换输入采样格式
- (void)setInputInfo:(TuSDKAudioTrackInfo *)inputInfo
Parameters
info |
输入音频信息 |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– setPitch:
改变音频音调 [速度设置将失效]
- (void)setPitch:(float)pitch
Parameters
pitch |
0 > pitch [大于1时声音升调,小于1时为降调] |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– setSpeed:
改变音频播放速度 [变速不变调, 音调设置将失效]
- (void)setSpeed:(float)speed
Parameters
speed |
0 > speed |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– queueEOS
入列缓存结束调用
- (BOOL)queueEOS
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– queueInputBuffer:
入列缓存
- (BOOL)queueInputBuffer:(CMSampleBufferRef)inputBuffer
Parameters
inputBuffer |
输入缓存 |
---|
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
– pitchSoundBuffer:
处理buffe设置信息
- (int8_t *)pitchSoundBuffer:(CMSampleBufferRef)ref
Parameters
ref |
输入缓存 |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.mm
Other Methods
mediaSync
音频变调同步接口
@property (nonatomic, weak) id<TuSDKAudioPitchSync> mediaSync
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.h
inputInfo
切换采样格式
@property (nonatomic, retain) TuSDKAudioTrackInfo *inputInfo
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.h
pitch
改变音频音调 [速度设置将失效]
@property (nonatomic) float pitch
Parameters
pitch |
0 > pitch [大于1时声音升调,小于1时为降调] |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.h
speed
改变音频播放速度 [变速不变调, 音调设置将失效]
@property (nonatomic) float speed
Parameters
speed |
0 > speed |
---|
Availability
v3.0
Declared In
TuSDKAudioPitchImpl.h