PLSAudioConfiguration.h
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// PLSAudioConfiguration.h
// PLShortVideoKit
//
// Created by suntongmian on 17/3/1.
// Copyright © 2017年 Pili Engineering, Qiniu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "PLSTypeDefines.h"
@interface PLSAudioConfiguration : NSObject
/**
@brief 采集音频数据的声道数,默认为 1
@warning 并非所有采集设备都支持多声道数据的采集
@since v1.0.0
*/
@property (assign, nonatomic) NSUInteger numberOfChannels;
/**
@brief 音频采样率 sampleRate 默认为 PLSAudioSampleRate_44100Hz
@since v1.0.0
*/
@property (assign, nonatomic) PLSAudioSampleRate sampleRate;
/**
@brief 音频编码码率 bitRate 默认为 PLSAudioBitRate_128Kbps
@since v1.0.0
*/
@property (assign, nonatomic) PLSAudioBitRate bitRate;
/**
@brief 创建一个默认配置的 PLSAudioConfiguration 实例.
@return 创建的默认 PLSAudioConfiguration 对象
@since v1.0.0
*/
+ (instancetype)defaultConfiguration;
@end