-
Notifications
You must be signed in to change notification settings - Fork 10
/
AudioMixInputStream.ts
43 lines (37 loc) · 1.16 KB
/
AudioMixInputStream.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 AudioMixInputChannelLayout from './AudioMixInputChannelLayout';
import AudioMixInputStreamChannel from './AudioMixInputStreamChannel';
import InputStream from './InputStream';
import InputStreamType from './InputStreamType';
/**
* @export
* @class AudioMixInputStream
*/
export class AudioMixInputStream extends InputStream {
/**
* Discriminator property for InputStream
* @type {string}
* @memberof AudioMixInputStream
*/
public readonly type: InputStreamType = InputStreamType.AUDIO_MIX;
/**
* Channel layout of the audio mix input stream
* @type {AudioMixInputChannelLayout}
* @memberof AudioMixInputStream
*/
public channelLayout?: AudioMixInputChannelLayout;
/**
* @type {AudioMixInputStreamChannel[]}
* @memberof AudioMixInputStream
*/
public audioMixChannels?: AudioMixInputStreamChannel[];
constructor(obj?: Partial<AudioMixInputStream>) {
super(obj);
if(!obj) {
return;
}
this.channelLayout = map(obj.channelLayout);
this.audioMixChannels = mapArray(obj.audioMixChannels, AudioMixInputStreamChannel);
}
}
export default AudioMixInputStream;