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).

!7
lib 1001094 // JavaLayer 1.0.1

import javazoom.jl.player.*;

p {
  autoRestart(5);
  File mp3 = loadLibrary("#1001093"); // deh polish music
  
  print("Playing mp3...");
  Player player = new Player(new FileInputStream(mp3));
  player.play();
  player.close();
  print("Done.");
}

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: 750 / 1079
Version history: 7 change(s)
Referenced in: #1001096 - Desktop: Play MP3 file (polish music!) with repeat
#1001265 - Try playing .ogg (desktop, JavaLayer)
#1001267 - playMp3 (desktop)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)