import javax.sound.sampled.*; import javax.sound.sampled.Clip; import javax.sound.sampled.Line; static void javaSound_playAudioInputStream(AudioInputStream ais) ctex { Line.Info linfo = new Line.Info(Clip.class); Line line = AudioSystem.getLine(linfo); Clip clip = (Clip) line; //clip.addLineListener(...); clip.open(ais); clip.setFramePosition(0); // troubleshooting? clip.start(); javaSound_closeClipOnStop(clip); print("javaSound playing"); }
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: | #1009640 |
Snippet name: | javaSound_playAudioInputStream |
Eternal ID of this version: | #1009640/7 |
Text MD5: | a18c7804dec9e049e974f744de0d92bd |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-12 21:29:43 |
Source code size: | 478 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 500 / 530 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |