TuSDKAudioResample Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TuSDKAudioResample.h |
mediaSync
required method
音频重采样同步器
@property (nonatomic, weak) id<TuSDKAudioResampleSync> mediaSync
Availability
v3.0
Declared In
TuSDKAudioResample.h
inputInfo
required method
输入采样格式
@property (nonatomic, strong) TuSDKAudioTrackInfo *inputInfo
Availability
v3.0
Declared In
TuSDKAudioResample.h
speed
required method
改变音频播放速度 [变速不变调, 音调设置将失效]
@property (nonatomic) float speed
Parameters
speed |
0 > speed |
---|
Availability
v3.0
Declared In
TuSDKAudioResample.h
reverse
required method
改变音频序列
@property (nonatomic) BOOL reverse
Parameters
reverse |
是否倒序 |
---|
Availability
v3.0
Declared In
TuSDKAudioResample.h
startPrefixTimeUs
required method
设置开始时间戳 [微秒]
@property (nonatomic) long long startPrefixTimeUs
Availability
v3.0
Declared In
TuSDKAudioResample.h
lastInputTimeUs
required method
获取最后输入时间 [微秒]
@property (nonatomic, readonly) long long lastInputTimeUs
Availability
v3.0
Declared In
TuSDKAudioResample.h
prefixTimeUs
required method
获取前置时间 [微秒]
@property (nonatomic, readonly) long long prefixTimeUs
Availability
v3.0
Declared In
TuSDKAudioResample.h
needResample
required method
是否需要重采样
@property (nonatomic, readonly) BOOL needResample
Availability
v3.0
Declared In
TuSDKAudioResample.h
– queueInputBuffer:
required method
入列缓存
- (BOOL)queueInputBuffer:(CMSampleBufferRef)inputBuffer
Parameters
inputBuffer |
输入缓存 |
---|
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioResample.h
– queueEOS
required method
入列缓存结束调用
- (BOOL)queueEOS
Return Value
是否已处理
Availability
v3.0
Declared In
TuSDKAudioResample.h