Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1001095 // Desktop: Play MP3 file (polish music!)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 206K of libraries. Click here for Pure Java version (6613L/44K/158K).

1  
!7
2  
lib 1001094 // JavaLayer 1.0.1
3  
4  
import javazoom.jl.player.*;
5  
6  
p {
7  
  autoRestart(5);
8  
  File mp3 = loadLibrary("#1001093"); // deh polish music
9  
  
10  
  print("Playing mp3...");
11  
  Player player = new Player(new FileInputStream(mp3));
12  
  player.play();
13  
  player.close();
14  
  print("Done.");
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xfbsdwenvhih

No comments. add comment

Snippet ID: #1001095
Snippet name: Desktop: Play MP3 file (polish music!)
Eternal ID of this version: #1001095/8
Text MD5: 13c814dbeec4e19e33c36373388b6440
Transpilation MD5: 0d07cbad66a2b955f60b6ab3b102619f
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-18 21:24:47
Source code size: 301 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 751 / 1080
Version history: 7 change(s)
Referenced in: [show references]