sclass AudioLine { Mixer mixer; Line.Info lineInfo; *() {} *(Mixer *mixer, Line.Info *lineInfo) {} Line open() ctex { ret mixer.getLine(lineInfo); } static S renderMixerInfo(Mixer.Info info) { ret info.getName() + " / " + info.getVendor() + " / " + info.getDescription() + " / " + info.getVersion(); } toString { ret shortClassName(mixer) + "/" + shortClassName(lineInfo.getLineClass()) + " " + renderMixerInfo(mixer.getMixerInfo()) + " :: " + lineInfo; } Class lineClass() { ret lineInfo.getLineClass(); } } static L<AudioLine> allAudioLines() { ret concatMap(listAudioDevices(), f allAudioLines); } static L<AudioLine> allAudioLines(Mixer m) { new L<AudioLine> l; for (Line.Info lineInfo : concatLists( asList(m.getTargetLineInfo()), asList(m.getSourceLineInfo()))) l.add(new AudioLine(m, lineInfo)); ret l; }
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: | 433 / 450 |
Version history: | 7 change(s) |
Referenced in: | [show references] |