多缩略图序列
更多...
#import <NvsWaveformDataGenerator.h>
多缩略图序列
音频波形数据生成类。
- 警告
- NvsWaveformDataGenerator类中,所有public API都在UI线程使用!!!
- 自从
- 2.21.0
◆ cancelTask:
- (void) cancelTask: |
|
(int64_t) |
taskId |
|
◆ generateWaveformData:samplesPerGroup:startGroupIndex:groupCount:flags:
- (int64_t) generateWaveformData: |
|
(NSString *) |
audioFilePath |
samplesPerGroup: |
|
(int64_t) |
samplesPerGroup |
startGroupIndex: |
|
(int64_t) |
startGroupIndex |
groupCount: |
|
(int64_t) |
groupCount |
flags: |
|
(int) |
flags |
|
|
| |
获取音频波形数据
- 参数
-
audioFilePath | 音频文件路径 |
samplesPerGroup | 每组采样数 |
startGroupIndex | 起始组序号 |
groupCount | 组数量 当传入0并且startGroupIndex也为0时为获取全部音频文件数据 |
flags | 标志字段,如无特殊需求请填写0 |
- 返回
- 返回任务号
- 自从
- 2.21.0
◆ getAudioFileDuration:
- (int64_t) getAudioFileDuration: |
|
(NSString *) |
audioFilePath |
|
获取音频文件时长(单位微秒)
- 参数
-
- 返回
- 返回音频文件时长
- 自从
- 2.21.0
◆ getAudioFileSampleCount:
- (int64_t) getAudioFileSampleCount: |
|
(NSString *) |
audioFilePath |
|
获取音频文件采样数
- 参数
-
- 返回
- 返回音频文件采样数
- 自从
- 2.21.0
◆ init
◆ notifyWaveformDataFailed:samplesPerGroup:
- (void) notifyWaveformDataFailed: |
|
(int64_t) |
waveformTaskId |
samplesPerGroup: |
|
(int64_t) |
samplesPerGroup |
|
|
| |
◆ notifyWaveformDataReady:samplesPerGroup:leftWaveformData:rightWaveformData:
- (void) notifyWaveformDataReady: |
|
(int64_t) |
waveformTaskId |
samplesPerGroup: |
|
(int64_t) |
samplesPerGroup |
leftWaveformData: |
|
(NSData *) |
leftWaveformData |
rightWaveformData: |
|
(NSData *) |
rightWaveformData |
|
|
| |
◆ delegate
该类的文档由以下文件生成: