Libraryless. Click here for Pure Java version (526L/4K/13K).
1 | !7 |
2 | |
3 | import javax.sound.sampled.*; |
4 | |
5 | p { |
6 | Mixer.Info[] mixerInfo = AudioSystem.getMixerInfo(); |
7 | |
8 | for (int i = 0; i < mixerInfo.length; i++) { |
9 | print("Found device: " + quote(mixerInfo[i].getName())); |
10 | Mixer mixer = AudioSystem.getMixer(mixerInfo[i]); |
11 | for (Line.Info thisLineInfo : mixer.getSourceLineInfo()) { |
12 | print(" Source line: " + thisLineInfo); |
13 | print(" Line class: " + thisLineInfo.getLineClass()); |
14 | } |
15 | for (Line.Info thisLineInfo : mixer.getTargetLineInfo()) { |
16 | print(" Target line: " + thisLineInfo); |
17 | print(" Line class: " + thisLineInfo.getLineClass()); |
18 | } |
19 | } |
20 | } |
Began life as a copy of #1003204
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: | #1006995 |
Snippet name: | List Audio Devices [dev.] |
Eternal ID of this version: | #1006995/4 |
Text MD5: | 5a6c649c48f058501c4bc4636817d2d3 |
Transpilation MD5: | aed61d335e63ac65a807a9c5787a147a |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-24 17:10:14 |
Source code size: | 636 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 481 / 560 |
Version history: | 3 change(s) |
Referenced in: | [show references] |