1 | lib 1001094 // JavaLayer 1.0.1 |
2 | |
3 | import javazoom.jl.player.*; |
4 | |
5 | static void playMp3_javaSound(File mp3) ctex { |
6 | FileInputStream fis = new FileInputStream(mp3); |
7 | Player player = new Player(fis); |
8 | player.play(); |
9 | repeat with ms sleep 10 { |
10 | if (player.isComplete()) break; |
11 | } |
12 | player.close(); |
13 | fis.close(); |
14 | } |
Began life as a copy of #1001267
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: | #1014503 |
Snippet name: | playMp3_javaSound (desktop) |
Eternal ID of this version: | #1014503/1 |
Text MD5: | 46c60792d7c751ec7228f25362b54306 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-22 22:15:13 |
Source code size: | 326 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 366 / 401 |
Referenced in: | [show references] |