TuSDKAudioPitch Protocol Reference

Conforms to NSObject
Declared in TuSDKAudioPitch.h

Overview

音频变调接口 * @since v3.0

  mediaSync required method

音频变调同步接口

@property (nonatomic, weak) id<TuSDKAudioPitchSync> mediaSync

Availability

v3.0

Declared In

TuSDKAudioPitch.h

  inputInfo required method

输入采样格式

@property (nonatomic, retain) TuSDKAudioTrackInfo *inputInfo

Availability

v3.0

Declared In

TuSDKAudioPitch.h

  pitch required method

改变音频音调 [速度设置将失效]

@property (nonatomic) float pitch

Parameters

pitch

0 > pitch [大于1时声音升调,小于1时为降调]

Availability

v3.0

Declared In

TuSDKAudioPitch.h

  speed required method

改变音频播放速度 [变速不变调, 音调设置将失效]

@property (nonatomic) float speed

Parameters

speed

0 > speed

Availability

v3.0

Declared In

TuSDKAudioPitch.h

  needPitch required method

是否需要重采样

@property (nonatomic, readonly) BOOL needPitch

Availability

v3.0

Declared In

TuSDKAudioPitch.h

– reset required method

重置时间戳

- (void)reset

Availability

v3.0

Declared In

TuSDKAudioPitch.h

– flush required method

刷新数据

- (void)flush

Availability

v3.0

Declared In

TuSDKAudioPitch.h

– queueInputBuffer: required method

入列缓存

- (BOOL)queueInputBuffer:(CMSampleBufferRef)inputBuffer

Parameters

inputBuffer

输入缓存

Return Value

是否已处理

Availability

v3.0

Declared In

TuSDKAudioPitch.h

– queueEOS required method

入列缓存结束调用

- (BOOL)queueEOS

Return Value

是否已处理

Availability

v3.0

Declared In

TuSDKAudioPitch.h

– destory required method

释放变调器

- (void)destory

Availability

v3.0

Declared In

TuSDKAudioPitch.h