|
iOS/macOS(Objective-C)[v1.2.5]
|
PanoRtcExternalAudioPlayer 接口类提供了所有的外置音频播放相关方法。 更多...
#import <PanoRtcEngineKit.h>
构造函数 | |
| (PanoResult) | - setEnableStatus:withSampleRate:channels: |
| 设置此外接音频播放设备的启用状态。 更多... | |
| (PanoResult) | - pullData:withLength:format:timestamp: |
| 从 PANO 媒体引擎拉取音频播放数据。 更多... | |
PanoRtcExternalAudioPlayer 接口类提供了所有的外置音频播放相关方法。
PanoRtcExternalAudioPlayer 对象可以通过 PanoRtcEngineKit 实例获取。
| - (PanoResult) pullData: | (void *_Nonnull) | buffer | |
| withLength: | (SInt32) | length | |
| format: | (PanoRtcAudioFormat *_Nonnull) | format | |
| timestamp: | (UInt64) | timestamp | |
从 PANO 媒体引擎拉取音频播放数据。
| buffer | 音频数据地址。 |
| length | 音频数据长度。 |
| format | 音频数据格式。只支持 kPanoPCM 类型。 |
| timestamp | 音频数据采集时间。 |
| - (PanoResult) setEnableStatus: | (BOOL) | enable | |
| withSampleRate: | (SInt32) | sampleRate | |
| channels: | (SInt32) | channels | |
设置此外接音频播放设备的启用状态。
| enable | 启用状态。 |
| sampleRate | 音频采样率。 |
| channels | 音频声道数。 |
1.8.17