forked from rFlex/SCRecorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCAudioConfiguration.h
46 lines (37 loc) · 1.18 KB
/
SCAudioConfiguration.h
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
//
// SCAudioConfiguration.h
// SCRecorder
//
// Created by Simon CORSIN on 21/11/14.
// Copyright (c) 2014 rFlex. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SCMediaTypeConfiguration.h"
#define kSCAudioConfigurationDefaultBitrate 128000
#define kSCAudioConfigurationDefaultNumberOfChannels 2
#define kSCAudioConfigurationDefaultSampleRate 44100
#define kSCAudioConfigurationDefaultAudioFormat kAudioFormatMPEG4AAC
@interface SCAudioConfiguration : SCMediaTypeConfiguration
/**
Set the sample rate of the audio
If set to 0, the original sample rate will be used.
If options has been changed, this property will be ignored
*/
@property (assign, nonatomic) int sampleRate;
/**
Set the number of channels
If set to 0, the original channels number will be used.
If options is not nil, this property will be ignored
*/
@property (assign, nonatomic) int channelsCount;
/**
Must be like kAudioFormat* (example kAudioFormatMPEGLayer3)
If options is not nil, this property will be ignored
*/
@property (assign, nonatomic) int format;
/**
The audioMix to apply.
Only used in SCAssetExportSession.
*/
@property (strong, nonatomic) AVAudioMix *__nullable audioMix;
@end