TuSDKAudioResampleImpl Class Reference
Inherits from | NSObject |
---|---|
Conforms to | TuSDKAudioResample |
Declared in | TuSDKAudioResampleImpl.h TuSDKAudioResampleImpl.mm |
Other Methods
+ buildWithAudioInfo:
音频重采样
+ (id)buildWithAudioInfo:(TuSDKAudioTrackInfo *)outputInfo
Parameters
outputInfo |
输出音频样式 |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– initWithAudioInfo:
音频重采样
- (instancetype)initWithAudioInfo:(TuSDKAudioTrackInfo *)outputInfo
Parameters
outputInfo |
输出音频样式 |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– buildAudioResample
创建重采样器
- (void)buildAudioResample
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– setInputInfo:
切换采样格式
- (void)setInputInfo:(TuSDKAudioTrackInfo *)inputInfo
Parameters
inputInfo |
输入音频样式 |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– setSpeed:
改变音频播放速度 [变速不变调, 音调设置将失效]
- (void)setSpeed:(float)speed
Parameters
speed |
0 > speed |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– setReverse:
改变音频序列
- (void)setReverse:(BOOL)reverse
Parameters
reverse |
是否倒序 |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– setStartPrefixTimeUs:
设置开始时间戳 [微秒]
- (void)setStartPrefixTimeUs:(long long)startPrefixTimeUs
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– lastInputTimeUs
获取最后输入时间 [微秒]
- (long long)lastInputTimeUs
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– prefixTimeUs
获取前置时间 [微秒]
- (long long)prefixTimeUs
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– queueInputBuffer:
入列缓存
- (BOOL)queueInputBuffer:(CMSampleBufferRef)inputBuffer
Parameters
inputBuffer |
输入缓存 |
---|
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– queueEOS
入列缓存结束调用
- (BOOL)queueEOS
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
– processSoundBuffer:
处理buffe设置信息
- (int8_t *)processSoundBuffer:(CMSampleBufferRef)ref
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.mm
Other Methods
mediaSync
音频重采样同步器
@property (nonatomic, weak) id<TuSDKAudioResampleSync> mediaSync
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.h
inputInfo
切换采样格式
@property (nonatomic, strong) TuSDKAudioTrackInfo *inputInfo
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.h
speed
改变音频播放速度 [变速不变调, 音调设置将失效]
@property (nonatomic) float speed
Parameters
speed |
0 > speed |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.h
reverse
改变音频序列
@property (nonatomic) BOOL reverse
Parameters
reverse |
是否倒序 |
---|
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.h
startPrefixTimeUs
设置开始时间戳 [微秒]
@property (nonatomic) long long startPrefixTimeUs
Availability
v3.0
Declared In
TuSDKAudioResampleImpl.h