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

19
LINES

< > BotCompany Repo | #1003615 // Play with Polish Music

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

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

!752

static S musicID = "#1001093";

p {
  File mp3 = loadLibrary(musicID); // deh polish music
  
  int n = 1;
  while (true) {
    Player player = playMP3(mp3);
    long start = now();
    while (!player.isComplete()) {
      long pos = player.getPosition(), ofs = pos-now()+start;
      print("Position: " + pos + ", ofs: " + ofs);
      sleep(500);
    }
    print("...aaaand again!! (n=" + ++n + ")");
  }
}

Author comment

Began life as a copy of #1001096

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003615
Snippet name: Play with Polish Music
Eternal ID of this version: #1003615/1
Text MD5: 825af178b848f693740babf5a5ca9620
Transpilation MD5: 34b561696b2166ee6b0a4560164db908
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:50:13
Source code size: 431 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 495 / 526
Referenced in: [show references]