Download Jar. Libraryless. Click here for Pure Java version (7088L/50K).
!7 import javax.sound.sampled.*; p-exp { for (Mixer.Info thisMixerInfo : AudioSystem.getMixerInfo()) { print("Mixer: "+thisMixerInfo.getDescription() + " ["+thisMixerInfo.getName()+"]"); Mixer thisMixer = AudioSystem.getMixer(thisMixerInfo); for (Line.Info thisLineInfo:thisMixer.getSourceLineInfo()) { if (thisLineInfo.getLineClass().getName().equals("javax.sound.sampled.Port")) { Line thisLine = thisMixer.getLine(thisLineInfo); thisLine.open(); print(" Line type: " + thisLine); print(" Source Port: " + thisLineInfo); for (Control thisControl : thisLine.getControls()) print("Have control: " + thisControl); thisLine.close(); } } for (Line.Info thisLineInfo:thisMixer.getTargetLineInfo()) { if (thisLineInfo.getLineClass().getName().equals("javax.sound.sampled.Port")) { Line thisLine = thisMixer.getLine(thisLineInfo); thisLine.open(); print(" Target Port: " + thisLineInfo); for (Control thisControl : thisLine.getControls()) print("Have control: " + thisControl); thisLine.close(); } } } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027000 |
| Snippet name: | JavaSound: List lines |
| Eternal ID of this version: | #1027000/8 |
| Text MD5: | 4d2ecc8c4d55ed0d045175da69348135 |
| Transpilation MD5: | 889f2e779338e7e379bfd89a3db6fe63 |
| Author: | stefan |
| Category: | javax / audio |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-06 14:28:37 |
| Source code size: | 1198 bytes / 32 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 653 / 1648 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |