1 | static Pair<TargetDataLine, SourceDataLine> javaSound_bothLines(S mixerName, AudioFormat format, int internalBufferSize) ctex { |
2 | Mixer mixer = mixerName == null ? null : AudioSystem.getMixer(javaSound_getMixerInfo(mixerName)); |
3 | DataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class, format, internalBufferSize); |
4 | DataLine.Info sourceInfo = new DataLine.Info(SourceDataLine.class, format, internalBufferSize); |
5 | TargetDataLine in; |
6 | SourceDataLine out; |
7 | if (mixer != null) { |
8 | in = (TargetDataLine) mixer.getLine(targetInfo); |
9 | out = (SourceDataLine) mixer.getLine(sourceInfo); |
10 | } else { |
11 | in = (TargetDataLine) AudioSystem.getLine(targetInfo); |
12 | out = (SourceDataLine) AudioSystem.getLine(sourceInfo); |
13 | } |
14 | in.open(format, internalBufferSize); |
15 | out.open(format, internalBufferSize); |
16 | ret pair(in, out); |
17 | } |
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: | 469 / 537 |
Version history: | 4 change(s) |
Referenced in: | [show references] |