static Pair<TargetDataLine, SourceDataLine> javaSound_bothLines(S mixerName, AudioFormat format, int internalBufferSize) ctex { Mixer mixer = mixerName == null ? null : AudioSystem.getMixer(javaSound_getMixerInfo(mixerName)); DataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class, format, internalBufferSize); DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format, internalBufferSize); TargetDataLine in; SourceDataLine out; if (mixer != null) { in = (TargetDataLine) mixer.getLine(targetInfo); out = (SourceDataLine) mixer.getLine(sourceInfo); } else { in = (TargetDataLine) AudioSystem.getLine(targetInfo); out = (SourceDataLine) AudioSystem.getLine(sourceInfo); } in.open(format, internalBufferSize); out.open(format, internalBufferSize); ret pair(in, out); }
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: | #1009290 |
Snippet name: | javaSound_bothLines |
Eternal ID of this version: | #1009290/5 |
Text MD5: | 98ad4d7a31700be87c2634624abea78c |
Author: | stefan |
Category: | javax / sound |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-21 05:36:11 |
Source code size: | 844 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 479 |
Version history: | 4 change(s) |
Referenced in: | [show references] |