-
Notifications
You must be signed in to change notification settings - Fork 10
/
AudioMixFilter.ts
44 lines (38 loc) · 1.1 KB
/
AudioMixFilter.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 AudioMixChannel from './AudioMixChannel';
import AudioMixChannelLayout from './AudioMixChannelLayout';
import Filter from './Filter';
import FilterType from './FilterType';
/**
* @export
* @class AudioMixFilter
*/
export class AudioMixFilter extends Filter {
/**
* Discriminator property for Filter
* @type {string}
* @memberof AudioMixFilter
*/
public readonly type: FilterType = FilterType.AUDIO_MIX;
/**
* Channel layout of the audio codec configuration (required)
* @type {AudioMixChannelLayout}
* @memberof AudioMixFilter
*/
public channelLayout?: AudioMixChannelLayout;
/**
* List of mixed channels that matches the channel layout (required)
* @type {AudioMixChannel[]}
* @memberof AudioMixFilter
*/
public audioMixChannels?: AudioMixChannel[];
constructor(obj?: Partial<AudioMixFilter>) {
super(obj);
if(!obj) {
return;
}
this.channelLayout = map(obj.channelLayout);
this.audioMixChannels = mapArray(obj.audioMixChannels, AudioMixChannel);
}
}
export default AudioMixFilter;