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