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

19
LINES

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

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

Uses 206K of libraries. Click here for Pure Java version (1117L/8K/26K).

!752
lib 1001094 // JavaLayer 1.0.1

import javazoom.jl.player.*;

static S musicID = "#1001093";

p {
  File mp3 = loadLibrary(musicID); // deh polish music
  
  print("Playing mp3...");
  int n = 1;
  while (true) {
    Player player = new Player(new FileInputStream(mp3));
    player.play();
    player.close();
    print("...aaaand again!! (n=" + ++n + ")");
  }
}

Author comment

Began life as a copy of #1001095

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001096
Snippet name: Desktop: Play MP3 file (polish music!) with repeat
Eternal ID of this version: #1001096/1
Text MD5: b2816e0acb767a2ffab319ba58150781
Transpilation MD5: f9aa25f19aa0864884891c3457c08a66
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-24 18:36:14
Source code size: 386 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 709 / 1011
Referenced in: #1003613 - playMP3AndWait
#1003615 - Play with Polish Music
#1006916 - Alarm Program - play music at clock time [WORKS]
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)