1 | sclass AudioLine { |
2 | Mixer mixer; |
3 | Line.Info lineInfo; |
4 | |
5 | *() {} |
6 | *(Mixer *mixer, Line.Info *lineInfo) {} |
7 | |
8 | Line open() ctex { |
9 | ret mixer.getLine(lineInfo); |
10 | } |
11 | |
12 | static S renderMixerInfo(Mixer.Info info) { |
13 | ret info.getName() + " / " + info.getVendor() + " / " + info.getDescription() + " / " + info.getVersion(); |
14 | } |
15 | |
16 | toString { |
17 | ret shortClassName(mixer) + "/" + shortClassName(lineInfo.getLineClass()) + " " + renderMixerInfo(mixer.getMixerInfo()) + " :: " + lineInfo; |
18 | } |
19 | |
20 | Class lineClass() { ret lineInfo.getLineClass(); } |
21 | } |
22 | |
23 | static L<AudioLine> allAudioLines() { |
24 | ret concatMap(listAudioDevices(), f allAudioLines); |
25 | } |
26 | |
27 | static L<AudioLine> allAudioLines(Mixer m) { |
28 | new L<AudioLine> l; |
29 | for (Line.Info lineInfo : concatLists( |
30 | asList(m.getTargetLineInfo()), |
31 | asList(m.getSourceLineInfo()))) |
32 | l.add(new AudioLine(m, lineInfo)); |
33 | ret l; |
34 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007024 |
Snippet name: | allAudioLines |
Eternal ID of this version: | #1007024/8 |
Text MD5: | 371b530ef06da6f8eb23105655a6f878 |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-02 22:47:57 |
Source code size: | 915 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 435 / 452 |
Version history: | 7 change(s) |
Referenced in: | [show references] |