-
Notifications
You must be signed in to change notification settings - Fork 10
/
AacAudioConfiguration.ts
43 lines (37 loc) · 1.1 KB
/
AacAudioConfiguration.ts
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
import {map, mapArray} from '../common/Mapper';
import AacChannelLayout from './AacChannelLayout';
import AudioConfiguration from './AudioConfiguration';
import CodecConfigType from './CodecConfigType';
/**
* @export
* @class AacAudioConfiguration
*/
export class AacAudioConfiguration extends AudioConfiguration {
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof AacAudioConfiguration
*/
public readonly type: CodecConfigType = CodecConfigType.AAC;
/**
* Channel layout of the audio codec configuration
* @type {AacChannelLayout}
* @memberof AacAudioConfiguration
*/
public channelLayout?: AacChannelLayout;
/**
* The highest frequency that will pass the audio encoder. This value is optional.
* @type {number}
* @memberof AacAudioConfiguration
*/
public cutoffFrequency?: number;
constructor(obj?: Partial<AacAudioConfiguration>) {
super(obj);
if(!obj) {
return;
}
this.channelLayout = map(obj.channelLayout);
this.cutoffFrequency = map(obj.cutoffFrequency);
}
}
export default AacAudioConfiguration;