-
Notifications
You must be signed in to change notification settings - Fork 10
/
DolbyDigitalAudioConfiguration.ts
78 lines (68 loc) · 2.7 KB
/
DolbyDigitalAudioConfiguration.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import {map, mapArray} from '../common/Mapper';
import AudioConfiguration from './AudioConfiguration';
import CodecConfigType from './CodecConfigType';
import DolbyDigitalBitstreamInfo from './DolbyDigitalBitstreamInfo';
import DolbyDigitalChannelLayout from './DolbyDigitalChannelLayout';
import DolbyDigitalDownmixing from './DolbyDigitalDownmixing';
import DolbyDigitalEvolutionFrameworkControl from './DolbyDigitalEvolutionFrameworkControl';
import DolbyDigitalLoudnessControl from './DolbyDigitalLoudnessControl';
import DolbyDigitalPreprocessing from './DolbyDigitalPreprocessing';
/**
* @export
* @class DolbyDigitalAudioConfiguration
*/
export class DolbyDigitalAudioConfiguration extends AudioConfiguration {
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof DolbyDigitalAudioConfiguration
*/
public readonly type: CodecConfigType = CodecConfigType.DD;
/**
* BitstreamInfo defines metadata parameters contained in the Dolby Digital audio bitstream
* @type {DolbyDigitalBitstreamInfo}
* @memberof DolbyDigitalAudioConfiguration
*/
public bitstreamInfo?: DolbyDigitalBitstreamInfo;
/**
* Channel layout of the audio codec configuration.
* @type {DolbyDigitalChannelLayout}
* @memberof DolbyDigitalAudioConfiguration
*/
public channelLayout?: DolbyDigitalChannelLayout;
/**
* @type {DolbyDigitalDownmixing}
* @memberof DolbyDigitalAudioConfiguration
*/
public downmixing?: DolbyDigitalDownmixing;
/**
* It provides a framework for signaling new evolution framework applications, such as Intelligent Loudness, in each Dolby codec.
* @type {DolbyDigitalEvolutionFrameworkControl}
* @memberof DolbyDigitalAudioConfiguration
*/
public evolutionFrameworkControl?: DolbyDigitalEvolutionFrameworkControl;
/**
* Settings for loudness control (required)
* @type {DolbyDigitalLoudnessControl}
* @memberof DolbyDigitalAudioConfiguration
*/
public loudnessControl?: DolbyDigitalLoudnessControl;
/**
* @type {DolbyDigitalPreprocessing}
* @memberof DolbyDigitalAudioConfiguration
*/
public preprocessing?: DolbyDigitalPreprocessing;
constructor(obj?: Partial<DolbyDigitalAudioConfiguration>) {
super(obj);
if(!obj) {
return;
}
this.bitstreamInfo = map(obj.bitstreamInfo, DolbyDigitalBitstreamInfo);
this.channelLayout = map(obj.channelLayout);
this.downmixing = map(obj.downmixing, DolbyDigitalDownmixing);
this.evolutionFrameworkControl = map(obj.evolutionFrameworkControl);
this.loudnessControl = map(obj.loudnessControl, DolbyDigitalLoudnessControl);
this.preprocessing = map(obj.preprocessing, DolbyDigitalPreprocessing);
}
}
export default DolbyDigitalAudioConfiguration;