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

19
LINES

< > BotCompany Repo | #1009563 // Play THE DAMN BLIP

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

Uses 206K of libraries. Click here for Pure Java version (1448L/10K/35K).

!752

static S musicID = #1009564;

p {
  File mp3 = loadLibrary(musicID);
  
  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 #1003615

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: #1009563
Snippet name: Play THE DAMN BLIP
Eternal ID of this version: #1009563/3
Text MD5: 60b4bef0fceb6f27f3bcc3562e99e661
Transpilation MD5: 80a0ad9900c02b80b9fd94fcff08105a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-07 21:20:03
Source code size: 409 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 485
Version history: 2 change(s)
Referenced in: [show references]