TuSDKMediaAudioQueuePlayer Class Reference

Inherits from NSObject
Conforms to TuSDKAudioPitchEngineDelegate
TuSDKAudioResampleEngineDelegate
TuSDKMediaAudioBufferPlayer
Declared in TuSDKMediaAudioQueuePlayer.h

Overview

音频引擎

Other Methods

  formatDescriptionRef

音频格式信息

@property (nonatomic) const CMFormatDescriptionRef formatDescriptionRef

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

  autoPlay

是否自动播放

@property (nonatomic) BOOL autoPlay

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

  isPlaying

是否正在播放中

@property (nonatomic) BOOL isPlaying

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

  volume

播放器的音频播放量,从0.0到1.0的线性范围。 默认:1.0

@property (nonatomic) float volume

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

  speedRate

速率调整 (0 - 2)

@property (nonatomic) CGFloat speedRate

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

  reverse

标记是否倒序播放 speedRate 和 reverse 二选一

@property (nonatomic) BOOL reverse

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

AudioEngine Methods

– prepareAudioPitchEngine:

变声变调对象

- (TuSDKAudioPitchEngine *)prepareAudioPitchEngine:(CMFormatDescriptionRef)inputFormatDescriptionRef

Parameters

inputFormatDescriptionRef

输入的格式信息

Return Value

TuSDKAudioPitchEngine

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

– prepareAudioResampleEngine:

重采样对象 支持倒序

- (TuSDKAudioResampleEngine *)prepareAudioResampleEngine:(CMFormatDescriptionRef)inputFormatDescriptionRef

Parameters

inputFormatDescriptionRef

输入的格式信息

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h

– makeAudioEngineWriteEnd

指示audio引擎输入完成

- (void)makeAudioEngineWriteEnd

Availability

v3.0

Declared In

TuSDKMediaAudioQueuePlayer.h