-
Notifications
You must be signed in to change notification settings - Fork 10
/
HeAacV1AudioConfiguration.ts
44 lines (38 loc) · 1.18 KB
/
HeAacV1AudioConfiguration.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
import {map, mapArray} from '../common/Mapper';
import AacChannelLayout from './AacChannelLayout';
import AudioConfiguration from './AudioConfiguration';
import CodecConfigType from './CodecConfigType';
import HeAacV1Signaling from './HeAacV1Signaling';
/**
* @export
* @class HeAacV1AudioConfiguration
*/
export class HeAacV1AudioConfiguration extends AudioConfiguration {
/**
* Discriminator property for CodecConfiguration
* @type {string}
* @memberof HeAacV1AudioConfiguration
*/
public readonly type: CodecConfigType = CodecConfigType.HE_AAC_V1;
/**
* Channel layout of the audio codec configuration
* @type {AacChannelLayout}
* @memberof HeAacV1AudioConfiguration
*/
public channelLayout?: AacChannelLayout;
/**
* Spectral Band Replication (SBR) and Parameteric Stereo (PS) signaling style.
* @type {HeAacV1Signaling}
* @memberof HeAacV1AudioConfiguration
*/
public signaling?: HeAacV1Signaling;
constructor(obj?: Partial<HeAacV1AudioConfiguration>) {
super(obj);
if(!obj) {
return;
}
this.channelLayout = map(obj.channelLayout);
this.signaling = map(obj.signaling);
}
}
export default HeAacV1AudioConfiguration;